Random: a few more tweaks

This commit is contained in:
terrafrost 2016-02-14 11:23:53 -06:00
parent 047f2617f1
commit 6eb35eb42c

View File

@ -148,10 +148,10 @@ if (!function_exists('crypt_random_string')) {
session_start(); session_start();
$v = $seed = $_SESSION['seed'] = pack('H*', sha1( $v = $seed = $_SESSION['seed'] = pack('H*', sha1(
phpseclib_safe_serialize($_SERVER) . (isset($_SERVER) ? phpseclib_safe_serialize($_SERVER) : '') .
phpseclib_safe_serialize($_POST) . (isset($_POST) ? phpseclib_safe_serialize($_POST) : '') .
phpseclib_safe_serialize($_GET) . (isset($_GET) ? phpseclib_safe_serialize($_GET) : '') .
phpseclib_safe_serialize($_COOKIE) . (isset($_COOKIE) ? phpseclib_safe_serialize($_COOKIE) : '') .
phpseclib_safe_serialize($GLOBALS) . phpseclib_safe_serialize($GLOBALS) .
phpseclib_safe_serialize($_SESSION) . phpseclib_safe_serialize($_SESSION) .
phpseclib_safe_serialize($_OLD_SESSION) phpseclib_safe_serialize($_OLD_SESSION)