diff options
-rw-r--r-- | application/helpers/filebin_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 53fc4f280..bed696c8c 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -218,7 +218,7 @@ function random_alphanum($min_length, $max_length = null) for($i = 0; $i < $max_length; $i++) { if (strlen($random) == $length) break; - $random .= substr($char_list, mt_rand(0, strlen($char_list)), 1); + $random .= substr($char_list, mt_rand(0, strlen($char_list) - 1), 1); } return $random; } |