summaryrefslogtreecommitdiffstats
path: root/Core/Util
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-12-30 14:34:16 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2014-12-30 14:34:16 +0100
commit66b3190f2c91508e73f4181fe4b718d19587346b (patch)
tree5c25915e6308ac80f7b291a881b0cacdc3416681 /Core/Util
parentbe21bcbd329bb50afa7c91a7d7d4e3c49caaca57 (diff)
parent381d069e464bb34f3a9748eb2e32d2a1718205af (diff)
downloadsymfony-security-66b3190f2c91508e73f4181fe4b718d19587346b.zip
symfony-security-66b3190f2c91508e73f4181fe4b718d19587346b.tar.gz
symfony-security-66b3190f2c91508e73f4181fe4b718d19587346b.tar.bz2
Merge branch '2.5' into 2.6
* 2.5: [Form] Remove a redundant test. use value of DIRECTORY_SEPARATOR to detect Windows Conflicts: src/Symfony/Component/Process/Process.php
Diffstat (limited to 'Core/Util')
-rw-r--r--Core/Util/SecureRandom.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Util/SecureRandom.php b/Core/Util/SecureRandom.php
index aefc888..c0924df 100644
--- a/Core/Util/SecureRandom.php
+++ b/Core/Util/SecureRandom.php
@@ -43,7 +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) {
+ if ('\\' === DIRECTORY_SEPARATOR && PHP_VERSION_ID < 50304) {
$this->useOpenSsl = false;
} elseif (!function_exists('openssl_random_pseudo_bytes')) {
if (null !== $this->logger) {