We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f917aa2 + f026d14 commit cdb4ca7Copy full SHA for cdb4ca7
src/Generator/Passcode.php
@@ -20,7 +20,7 @@ public static function generate(int $length = self::DEFAULT_LENGTH): string
20
{
21
$code = [];
22
for ($amount = 0; $amount < $length; $amount++) {
23
- $code[] = self::DIGITS[mt_rand(0, self::TOTAL_DIGITS)];
+ $code[] = self::DIGITS[random_int(0, self::TOTAL_DIGITS)];
24
}
25
26
return implode($code);
0 commit comments