Skip to content

Commit 44bdec1

Browse files
authored
Merge pull request #2040 from fsok/csprng_random
Use CSPRNG for generating nonce
2 parents e80d4d7 + c26e5e5 commit 44bdec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/Helper/NonceGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ private function __construct()
1919

2020
public static function generate(): string
2121
{
22-
return md5(microtime(true).uniqid('', true));
22+
return bin2hex(random_bytes(16));
2323
}
2424
}

0 commit comments

Comments
 (0)