[web-php] master: Fix: Use mt_srand() instead of srand() (#887)
| From: | Andreas Möller via GitHub | Date: | Thu, 07 Dec 2023 16:13:44 +0000 |
| Subject: | [web-php] master: Fix: Use mt_srand() instead of srand() (#887) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31263@lists.php.net to get a copy of this message | ||
Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2023-12-07T17:00:05+01:00
Commit: https://github.com/php/web-php/commit/b76e22374bbc81fb4489de89e85482986db8ccd8
Raw diff: https://github.com/php/web-php/commit/b76e22374bbc81fb4489de89e85482986db8ccd8.diff
Fix: Use mt_srand() instead of srand() (#887)
Changed paths:
M tests/gen-challenge.phpt
Diff:
diff --git a/tests/gen-challenge.phpt b/tests/gen-challenge.phpt
index 5738512a39..714985c46c 100644
--- a/tests/gen-challenge.phpt
+++ b/tests/gen-challenge.phpt
@@ -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();