diff --git a/src/include/common.func.php b/src/include/common.func.php index f176281c..9ce1a1e2 100755 --- a/src/include/common.func.php +++ b/src/include/common.func.php @@ -67,6 +67,12 @@ function dede_random_bytes($length) { return FALSE; } + + if (function_exists('openssl_random_pseudo_bytes')) + { + return openssl_random_pseudo_bytes($length); + } + if (function_exists('random_bytes')) { try @@ -93,11 +99,6 @@ function dede_random_bytes($length) } } - if (function_exists('openssl_random_pseudo_bytes')) - { - return openssl_random_pseudo_bytes($length); - } - return FALSE; }