mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Check wether CRYPT_RANDOM_IS_WINDOWS is defined before defining it.
This commit is contained in:
parent
ccfe02a44e
commit
9f1108e52e
@ -46,7 +46,9 @@
|
|||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
define('CRYPT_RANDOM_IS_WINDOWS', strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
|
if (defined('CRYPT_RANDOM_IS_WINDOWS') === false) {
|
||||||
|
define('CRYPT_RANDOM_IS_WINDOWS', strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a random string.
|
* Generate a random string.
|
||||||
|
Loading…
Reference in New Issue
Block a user