mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-26 17:46:38 +03:00
generate random clockSeq with random_int() instead of mt_rand()
This commit is contained in:
committed by
Ben Ramsey
parent
3567caf3f9
commit
76efebe0ac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user