diff --git a/packages/zend-filter/library/Zend/Filter/Encrypt/Mcrypt.php b/packages/zend-filter/library/Zend/Filter/Encrypt/Mcrypt.php index 0e3b714a3..01d045ae2 100644 --- a/packages/zend-filter/library/Zend/Filter/Encrypt/Mcrypt.php +++ b/packages/zend-filter/library/Zend/Filter/Encrypt/Mcrypt.php @@ -171,7 +171,6 @@ public function setVector($vector = null) $cipher = $this->_openCipher(); $size = mcrypt_enc_get_iv_size($cipher); if (empty($vector)) { - $this->_srand(); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { $method = MCRYPT_RAND; } else { @@ -331,7 +330,6 @@ protected function _initCipher($cipher) $keysizes = mcrypt_enc_get_supported_key_sizes($cipher); if (empty($keysizes) || ($this->_encryption['salt'] == true)) { - $this->_srand(); $keysize = mcrypt_enc_get_key_size($cipher); $key = substr(md5($key), 0, $keysize); } else if (!in_array(strlen($key), $keysizes)) { @@ -347,20 +345,4 @@ protected function _initCipher($cipher) return $this; } - - /** - * _srand() interception - * - * @see ZF-8742 - */ - protected function _srand() - { - if (version_compare(PHP_VERSION, '5.3.0', '>=')) { - return; - } - if (!self::$_srandCalled) { - srand(Zend_Crypt_Math::randInteger(0, PHP_INT_MAX)); - self::$_srandCalled = true; - } - } }