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 9d3bae1 commit a7a2a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Environment.php
Expand Up @@ -61,7 +61,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 a7a2a4f

Please sign in to comment.