Merge pull request #162 from FrenkyNet/master

Check wether CRYPT_RANDOM_IS_WINDOWS is defined before defining it.

* FrenkyNet/master:
  Fixed coding style to comply with other not defined statements
  Check wether CRYPT_RANDOM_IS_WINDOWS is defined before defining it.
This commit is contained in:
Andreas Fischer 2013-11-05 13:28:50 +01:00
commit b55a0a1f1a

View File

@ -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')) {
define('CRYPT_RANDOM_IS_WINDOWS', strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
}
/** /**
* Generate a random string. * Generate a random string.