This commit is contained in:
terrafrost 2013-04-15 23:59:47 -05:00
commit 7ff96b3946
3 changed files with 7 additions and 8 deletions

View File

@ -43,6 +43,9 @@
"File": "phpseclib/",
"Math": "phpseclib/",
"Net": "phpseclib/"
}
},
"files": [
"phpseclib/Crypt/Random.php"
]
}
}

View File

@ -83,7 +83,7 @@ if (!class_exists('Math_BigInteger')) {
// will trigger a call to __autoload() if you're wanting to auto-load classes
// call function_exists() a second time to stop the require_once from being called outside
// of the auto loader
if (!function_exists('crypt_random_string') && !class_exists('Crypt_Random') && !function_exists('crypt_random_string')) {
if (!function_exists('crypt_random_string')) {
require_once('Crypt/Random.php');
}

View File

@ -80,11 +80,7 @@ if (!class_exists('Math_BigInteger')) {
/**
* Include Crypt_Random
*/
// the class_exists() will only be called if the crypt_random_string function hasn't been defined and
// will trigger a call to __autoload() if you're wanting to auto-load classes
// call function_exists() a second time to stop the require_once from being called outside
// of the auto loader
if (!function_exists('crypt_random_string') && !class_exists('Crypt_Random') && !function_exists('crypt_random_string')) {
if (!function_exists('crypt_random_string')) {
require_once('Crypt/Random.php');
}