diff --git a/src/Utils/StringUtils.php b/src/Utils/StringUtils.php index ab2c75f0e8..d40638b151 100644 --- a/src/Utils/StringUtils.php +++ b/src/Utils/StringUtils.php @@ -120,7 +120,7 @@ public static function generatePassword(int $length = 10): string for ($i = 0; $i < $length; $i++) { // Each iteration, pick a random character from the // allowable string and append it to the password: - $pass .= $allowable_characters[mt_rand(0, $len)]; + $pass .= $allowable_characters[random_int(0, $len)]; } return $pass;