fix second argument for rand() function
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -37,7 +37,7 @@ function randomStr($length)
|
||||
$pr_bits .= @fread($fp, $length);
|
||||
@fclose($fp);
|
||||
} else {
|
||||
$pr_bits = substr(rand(time()).rand(time()), 0, $length);
|
||||
$pr_bits = substr(rand(time(), getrandmax()).rand(time(), getrandmax()), 0, $length);
|
||||
}
|
||||
return $pr_bits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user