diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 9e6109c3..392f2a54 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -1111,9 +1111,9 @@ class moduleCache { */ function getRandomNumber() { if (function_exists('openssl_random_pseudo_bytes')) { - return hexdec(bin2hex(openssl_random_pseudo_bytes(5))); + return abs(hexdec(bin2hex(openssl_random_pseudo_bytes(5)))); } - return mt_rand(); + return abs(mt_rand()); } /**