diff --git a/app/Services/KeyGeneratorService.php b/app/Services/KeyGeneratorService.php index 31f20ae71..aec2b874b 100644 --- a/app/Services/KeyGeneratorService.php +++ b/app/Services/KeyGeneratorService.php @@ -66,7 +66,7 @@ public function getBytesFromString(string $alphabet, int $length): string $result = ''; for ($i = 0; $i < $length; $i++) { - $result .= $alphabet[random_int(0, $stringLength - 1)]; + $result .= $alphabet[mt_rand(0, $stringLength - 1)]; } return $result;