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 b9cb841 commit ecfc82d
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 @@ -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 ecfc82d

Please sign in to comment.