From 7c08ab71d3adcb668a00a2f051088dddf663bfe1 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 29 May 2014 16:31:26 -0500 Subject: [PATCH] BigInteger: "be less overly clever loading Crypt/Random" pretty much the same as this commit: https://github.com/phpseclib/phpseclib/commit/28f18f83ec1476a028a81fe71152978ed792b8a6 --- phpseclib/Math/BigInteger.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index f32831d9..b149d6e5 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -3066,8 +3066,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 = '';