We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d4b3f commit 39f3884Copy full SHA for 39f3884
src/libraries/User.php
@@ -279,7 +279,7 @@ public static function create(
279
public static function createPassword($password, &$hash, &$salt) {
280
$pepper = Common::$config->bnetdocs->user_password_pepper;
281
282
- $gmp = gmp_init(time());
+ $gmp = gmp_init(microtime(true)*10000);
283
$gmp = gmp_mul($gmp, mt_rand());
284
$gmp = gmp_mul($gmp, gmp_random_bits(64));
285
$salt = strtoupper(gmp_strval($gmp, 36));
0 commit comments