@@ -67,6 +67,12 @@ function dede_random_bytes($length) | |||||
{ | { | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
if (function_exists('openssl_random_pseudo_bytes')) | |||||
{ | |||||
return openssl_random_pseudo_bytes($length); | |||||
} | |||||
if (function_exists('random_bytes')) | if (function_exists('random_bytes')) | ||||
{ | { | ||||
try | 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; | return FALSE; | ||||
} | } | ||||