From 8b3f7752a71ae8e72e550e87c3316d900eb6d8f9 Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Wed, 9 Mar 2022 17:11:30 -0500 Subject: [PATCH] Fixes the blank password issue (#6322) --- resources/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }