1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix: Use mt_srand() instead of srand() (#887)

This commit is contained in:
Andreas Möller
2023-12-07 17:00:05 +01:00
committed by GitHub
parent 59c070f557
commit b76e22374b

View File

@@ -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();