mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +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
@@ -166,7 +166,7 @@ class DefaultTimeGeneratorTest extends TestCase
|
||||
public function testGenerateUsesRandomSequenceWhenClockSeqNull()
|
||||
{
|
||||
$this->skipIfHhvm();
|
||||
$mt_rand = AspectMock::func('Ramsey\Uuid\Generator', 'mt_rand', 9622);
|
||||
$mt_rand = AspectMock::func('Ramsey\Uuid\Generator', 'random_int', 9622);
|
||||
$defaultTimeGenerator = new DefaultTimeGenerator(
|
||||
$this->nodeProvider,
|
||||
$this->timeConverter,
|
||||
|
||||
Reference in New Issue
Block a user