parent
205fbcbfa3
commit
73dd8c17de
|
@ -77,7 +77,7 @@ class SecureRandom implements ISecureRandom {
|
||||||
$randomString = '';
|
$randomString = '';
|
||||||
|
|
||||||
while($length > 0) {
|
while($length > 0) {
|
||||||
$randomNumber = random_int(0, $maxCharIndex);
|
$randomNumber = \random_int(0, $maxCharIndex);
|
||||||
$randomString .= $characters[$randomNumber];
|
$randomString .= $characters[$randomNumber];
|
||||||
$length--;
|
$length--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue