fork download
  1. <?php
  2. $key = wp_rand(0, strlen($chars)1);
  3.  
  4. echo '$key';
  5. function wp_rand( $min = 0, $max = 0 ) {
  6. global $rnd_value;
  7. if ( strlen($rnd_value) < 8 ) {
  8. $rnd_value = md5( uniqid(microtime() . mt_rand(), true ) );
  9. $rnd_value .= sha1($rnd_value);
  10. }
  11.  
  12. $value = substr($rnd_value, 0, 8);
  13.  
  14. // Strip the first eight, leaving the remainder for the next call to wp_rand().
  15. $rnd_value = substr($rnd_value, 8);
  16. $value = abs(hexdec($value));
  17.  
  18.  
  19. if ( $max != 0 )
  20. $value = $min + (($max$min + 1) * ($value / (4294967295 + 1)));
  21.  
  22. return abs(intval($value));
  23. }
  24.  
  25. ?>
Runtime error #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
Parse error: syntax error, unexpected T_STRING in /home/Wy2biY/prog.php on line 2