From 7744362a99071a92341e82f00507f8027869eb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 2 Sep 2023 12:46:21 +0200 Subject: [PATCH] Fix: Use MT_RAND_MT19937 instead of deprecated MT_RAND_PHP --- src/Faker/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Faker/Generator.php b/src/Faker/Generator.php index 225e8e5313..5e20bf0c40 100644 --- a/src/Faker/Generator.php +++ b/src/Faker/Generator.php @@ -687,7 +687,7 @@ public function seed($seed = null) if ($seed === null) { mt_srand(); } else { - mt_srand((int) $seed, MT_RAND_PHP); + mt_srand((int) $seed, MT_RAND_MT19937); } }