Project

General

Profile

Bug #19820 ยป 10131.diff

Administrator Admin, 2009-01-14 11:58

View differences:

t3lib/class.t3lib_div.php (working copy)
// fallback if /dev/urandom is not available
if (!isset($output{$count - 1})) {
$randomState = getmypid();
// We initialize with the somewhat random.
$randomState = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
. microtime() . getmypid();
while (!isset($output{$count - 1})) {
$randomState = sha1(microtime() . mt_rand() . $randomState);
$output .= sha1(mt_rand() . $randomState, true);
$randomState = md5(microtime() . mt_rand() . $randomState);
$output .= md5(mt_rand() . $randomState, true);
}
$output = substr($output, strlen($output) - $count, $count);
}
......
}
// create_function() returns a string:
if (!is_string($getValueFunc)) {
$getValueFunc = null;
$getValueFunc = null;
}
// Do the filtering:
if (is_array($keepItems) && count($keepItems)) {
    (1-1/1)