mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
Merge branch 'master' into php5
* master: BigInteger: "be less overly clever loading Crypt/Random"
This commit is contained in:
commit
4a89349615
@ -3052,8 +3052,7 @@ class Math_BigInteger
|
||||
*/
|
||||
function _random_number_helper($size)
|
||||
{
|
||||
$crypt_random = function_exists('crypt_random_string') || (!class_exists('Crypt_Random') && function_exists('crypt_random_string'));
|
||||
if ($crypt_random) {
|
||||
if (function_exists('crypt_random_string')) {
|
||||
$random = crypt_random_string($size);
|
||||
} else {
|
||||
$random = '';
|
||||
|
Loading…
Reference in New Issue
Block a user