From abfe8ddbd94e2fee8013ec44f9e6ce6068396c0e Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Mon, 30 Dec 2024 18:16:55 +0100 Subject: [PATCH] fixed microtime not being numeric --- src/Md5Crypt/Md5Crypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Md5Crypt/Md5Crypt.php b/src/Md5Crypt/Md5Crypt.php index 25d82d1..ada7bbc 100644 --- a/src/Md5Crypt/Md5Crypt.php +++ b/src/Md5Crypt/Md5Crypt.php @@ -83,7 +83,7 @@ public static function unix($pw, $salt = null, $Magic = '$1$') $salt = substr($parts[0], 0, 8); } else { $salt = ''; - mt_srand((float) (microtime() * 10000000)); + mt_srand((float) (microtime(true) * 10000000)); while (strlen($salt) < 8) { $salt .= $itoa64[mt_rand(0, strlen($itoa64) - 1)];