We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff45cb commit d891e7aCopy full SHA for d891e7a
1 file changed
lib/User.php
@@ -11,7 +11,7 @@ private static function connect() {
11
12
private static function generateTokenCode() {
13
$digits = 6;
14
- $code = rand(0,1000000);
+ $code = random_int(0,1000000);
15
$code = str_pad($code, $digits, '0', STR_PAD_LEFT);
16
return $code;
17
}
0 commit comments