diff --git a/resources/functions.php b/resources/functions.php index e8587e5dc6..22f88ceeed 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -2181,8 +2181,8 @@ function number_pad($number,$n) { //convert bytes to readable human format if (!function_exists('random_int')) { - function random_int() { - return rand (); + function random_int($min, $max) { + return rand ($min, $max); } }