mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
Random: a few more tweaks
This commit is contained in:
parent
047f2617f1
commit
6eb35eb42c
@ -148,10 +148,10 @@ if (!function_exists('crypt_random_string')) {
|
||||
session_start();
|
||||
|
||||
$v = $seed = $_SESSION['seed'] = pack('H*', sha1(
|
||||
phpseclib_safe_serialize($_SERVER) .
|
||||
phpseclib_safe_serialize($_POST) .
|
||||
phpseclib_safe_serialize($_GET) .
|
||||
phpseclib_safe_serialize($_COOKIE) .
|
||||
(isset($_SERVER) ? phpseclib_safe_serialize($_SERVER) : '') .
|
||||
(isset($_POST) ? phpseclib_safe_serialize($_POST) : '') .
|
||||
(isset($_GET) ? phpseclib_safe_serialize($_GET) : '') .
|
||||
(isset($_COOKIE) ? phpseclib_safe_serialize($_COOKIE) : '') .
|
||||
phpseclib_safe_serialize($GLOBALS) .
|
||||
phpseclib_safe_serialize($_SESSION) .
|
||||
phpseclib_safe_serialize($_OLD_SESSION)
|
||||
|
Loading…
Reference in New Issue
Block a user