Skip to content

Commit

Permalink
Fix: Use MT_RAND_MT19937 instead of deprecated MT_RAND_PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 2, 2023
1 parent 5f3281d commit 7744362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7744362

Please sign in to comment.