From e1e1d26b5beb166af6f747809fbd67eca499ae06 Mon Sep 17 00:00:00 2001 From: dew-git <55564947+dew-git@users.noreply.github.com> Date: Fri, 11 Oct 2019 00:00:15 -0800 Subject: [PATCH] Revert random_int changes. --- src/Util/Strings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/Strings.php b/src/Util/Strings.php index ef7a2df06..91b86fbfd 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -86,7 +86,7 @@ class Strings $vowels = ['a', 'a', 'ai', 'au', 'e', 'e', 'e', 'ee', 'ea', 'i', 'ie', 'o', 'ou', 'u']; - if (random_int(0, 5) == 4) { + if (mt_rand(0, 5) == 4) { $vowels[] = 'y'; } @@ -123,7 +123,7 @@ class Strings 'kh', 'kl', 'kr', 'mn', 'pl', 'pr', 'rh', 'tr', 'qu', 'wh', 'q' ]; - $start = random_int(0, 2); + $start = mt_rand(0, 2); if ($start == 0) { $table = $vowels; } else { @@ -133,7 +133,7 @@ class Strings $word = ''; for ($x = 0; $x < $len; $x++) { - $r = random_int(0, count($table) - 1); + $r = mt_rand(0, count($table) - 1); $word .= $table[$r]; if ($table == $vowels) {