use new random number function
This commit is contained in:
parent
87956b95fe
commit
8cc198ab34
|
@ -992,6 +992,9 @@ class moduleCache {
|
||||||
* @return int random number
|
* @return int random number
|
||||||
*/
|
*/
|
||||||
function getRandomNumber() {
|
function getRandomNumber() {
|
||||||
|
if (function_exists('openssl_random_pseudo_bytes')) {
|
||||||
|
return hexdec(bin2hex(openssl_random_pseudo_bytes(5)));
|
||||||
|
}
|
||||||
return mt_rand();
|
return mt_rand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue