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
@@ -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,