From 0f8951ba3ad90da992933287faeb676a7ec29fd0 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sun, 25 Sep 2016 18:08:18 +0200 Subject: [PATCH] fof is an external lib so we need to revert that change at this point --- libraries/fof/encrypt/randval.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/fof/encrypt/randval.php b/libraries/fof/encrypt/randval.php index 178b328b881ab..d6a511561e67d 100644 --- a/libraries/fof/encrypt/randval.php +++ b/libraries/fof/encrypt/randval.php @@ -112,7 +112,7 @@ public function genRandomBytes($length = 32) * Collect any entropy available from the PHP system and filesystem. * If we have ssl data that isn't strong, we use it once. */ - $entropy = mt_rand() . uniqid(mt_rand(), true) . $sslStr; + $entropy = rand() . uniqid(mt_rand(), true) . $sslStr; $entropy .= implode('', @fstat(fopen(__FILE__, 'r'))); $entropy .= memory_get_usage(); $sslStr = '';