From 2bb8f707ebfc19ceefb318617558e1faf102a5b8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 28 Jan 2016 21:19:48 +0100 Subject: [PATCH] fix second argument for rand() function Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/system/function.randomStr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/system/function.randomStr.php b/lib/functions/system/function.randomStr.php index 285ca27b..1278a378 100644 --- a/lib/functions/system/function.randomStr.php +++ b/lib/functions/system/function.randomStr.php @@ -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; }