Skip to content

Commit

Permalink
tests: eliminate use of rand()
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Jan 3, 2023
1 parent 26b9b02 commit 4c917f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static function prepareTempBaseDir(): void

private static function shouldCollectGarbage(): bool
{
return rand(0, self::GC_DIVISOR) === 0;
return random_int(0, self::GC_DIVISOR) === 0;
}

}

0 comments on commit 4c917f5

Please sign in to comment.