Skip to content

Commit abfe8dd

Browse files
committed
fixed microtime not being numeric
1 parent 80bbbbd commit abfe8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Md5Crypt/Md5Crypt.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static function unix($pw, $salt = null, $Magic = '$1$')
8383
$salt = substr($parts[0], 0, 8);
8484
} else {
8585
$salt = '';
86-
mt_srand((float) (microtime() * 10000000));
86+
mt_srand((float) (microtime(true) * 10000000));
8787

8888
while (strlen($salt) < 8) {
8989
$salt .= $itoa64[mt_rand(0, strlen($itoa64) - 1)];

0 commit comments

Comments
 (0)