fix second argument for rand() function

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-01-28 21:19:48 +01:00
parent ad302fb5c2
commit 2bb8f707eb

View File

@@ -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;
}