Bug #24410 » 16837_v3a.diff
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
|
||
if ($iv !== FALSE) {
|
||
$output = $iv;
|
||
}
|
||
} elseif (function_exists('openssl_random_pseudo_bytes')) {
|
||
$isStrong = NULL;
|
||
$output = openssl_random_pseudo_bytes($count, $isStrong);
|