Project

General

Profile

Bug #24410 » 16837_v3.diff

Administrator Admin, 2010-12-30 11:21

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);
$iv = @mcrypt_create_iv($count, MCRYPT_DEV_URANDOM);
// reset random byte string in case of a mcrypt error
$output = ($iv !== FALSE ? $iv : '');
} elseif (function_exists('openssl_random_pseudo_bytes')) {
$isStrong = NULL;
$output = openssl_random_pseudo_bytes($count, $isStrong);
(3-3/6)