Skip to content

Commit

Permalink
Fix: Use mt_srand() instead of srand() (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Dec 7, 2023
1 parent 59c070f commit b76e223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gen-challenge.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gen_challenge() generates a spam challenge

require_once __DIR__ . '/../manual/spam_challenge.php';

srand(9001);
mt_srand(9001);

$challenges = array_map(static function (): array {
[$function, $argumentOne, $argumentTwo, $question] = gen_challenge();
Expand Down

0 comments on commit b76e223

Please sign in to comment.