|
@@ -42,9 +42,9 @@ |
|
42
|
42
|
|
|
43
|
43
|
$str = ""; |
|
44
|
44
|
$size = strlen($chars); |
|
45
|
45
|
for( $i = 0; $i < $length; $i++ ) { |
|
46
|
|
- $str .= $chars[rand(0, $size - 1)]; |
|
46
|
+ $str .= $chars[rand(0, $size - 1)]; // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_rand |
|
47
|
47
|
} |
|
48
|
48
|
return $str; |
|
49
|
49
|
} |
|
50
|
50
|
|