summaryrefslogtreecommitdiffstats
path: root/Core/Util/SecureRandom.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-01-08 23:22:42 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2015-01-09 14:24:18 +0100
commit3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8 (patch)
treee963a2b3980789f831ef2ee942126aa07eb6515d /Core/Util/SecureRandom.php
parent65288d547615f73fb0fe800c8cd0a8e6bacbaa5d (diff)
downloadsymfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.zip
symfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.tar.gz
symfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.tar.bz2
removed code for PHP < 5.3.9
Diffstat (limited to 'Core/Util/SecureRandom.php')
-rw-r--r--Core/Util/SecureRandom.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/Core/Util/SecureRandom.php b/Core/Util/SecureRandom.php
index c0924df..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 ('\\' === DIRECTORY_SEPARATOR && 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.');
}