/** * _srand() interception * * @see ZF-8742 */ protected function _srand() { if (version_compare(PHP_VERSION, '5.3.0', '>=')) { return; } if (!self::$_srandCalled) { srand((double) microtime() * 1000000); self::$_srandCalled = true; } }
/** * _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; } }