From 8cc198ab3490e73ee7c13cd3809cf4e82abfe0a8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 21 Jul 2013 11:47:49 +0000 Subject: [PATCH] use new random number function --- lam/lib/account.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 620d94d7..366fe997 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -992,6 +992,9 @@ class moduleCache { * @return int random number */ function getRandomNumber() { + if (function_exists('openssl_random_pseudo_bytes')) { + return hexdec(bin2hex(openssl_random_pseudo_bytes(5))); + } return mt_rand(); }