We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80bbbbd commit abfe8ddCopy full SHA for abfe8dd
src/Md5Crypt/Md5Crypt.php
@@ -83,7 +83,7 @@ public static function unix($pw, $salt = null, $Magic = '$1$')
83
$salt = substr($parts[0], 0, 8);
84
} else {
85
$salt = '';
86
- mt_srand((float) (microtime() * 10000000));
+ mt_srand((float) (microtime(true) * 10000000));
87
88
while (strlen($salt) < 8) {
89
$salt .= $itoa64[mt_rand(0, strlen($itoa64) - 1)];
0 commit comments