Project

General

Profile

Bug #24410 » 16837.diff

Administrator Admin, 2010-12-29 19:35

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
}
if ($output === '' && version_compare(PHP_VERSION, '5.3.0', '>=')) {
if (function_exists('mcrypt_create_iv')) {
$output = mcrypt_create_iv($count, MCRYPT_DEV_URANDOM);
$source = defined('MCRYPT_DEV_URANDOM') ? MCRYPT_DEV_URANDOM : MCRYPT_RAND;
$output = mcrypt_create_iv($count, $source);
} elseif (function_exists('openssl_random_pseudo_bytes')) {
$isStrong = NULL;
$output = openssl_random_pseudo_bytes($count, $isStrong);
(1-1/6)