generate random clockSeq with random_int() instead of mt_rand()

This commit is contained in:
Marcel Hernandez
2018-01-19 19:31:02 +01:00
committed by Ben Ramsey
parent 3567caf3f9
commit 76efebe0ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class DefaultTimeGenerator implements TimeGeneratorInterface
if ($clockSeq === null) {
// Not using "stable storage"; see RFC 4122, Section 4.2.1.1
$clockSeq = mt_rand(0, 0x3fff);
$clockSeq = random_int(0, 0x3fff);
}
// Create a 60-bit time value as a count of 100-nanosecond intervals