diff options
Diffstat (limited to 'Core/Util/SecureRandom.php')
-rw-r--r-- | Core/Util/SecureRandom.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Core/Util/SecureRandom.php b/Core/Util/SecureRandom.php index aefc888..f4167e4 100644 --- a/Core/Util/SecureRandom.php +++ b/Core/Util/SecureRandom.php @@ -43,9 +43,7 @@ final class SecureRandom implements SecureRandomInterface $this->logger = $logger; // determine whether to use OpenSSL - if (defined('PHP_WINDOWS_VERSION_BUILD') && PHP_VERSION_ID < 50304) { - $this->useOpenSsl = false; - } elseif (!function_exists('openssl_random_pseudo_bytes')) { + if (!function_exists('openssl_random_pseudo_bytes')) { if (null !== $this->logger) { $this->logger->notice('It is recommended that you enable the "openssl" extension for random number generation.'); } |