mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +01:00
Random: don't do >= 8.1 check
This commit is contained in:
parent
5a6f433ee8
commit
c1377159a2
@ -100,7 +100,7 @@ abstract class Random
|
||||
// as of PHP 8.1 $GLOBALS cann't be accessed by reference, which eliminates
|
||||
// the need for phpseclib_safe_serialize. see https://wiki.php.net/rfc/restrict_globals_usage
|
||||
// for more info
|
||||
(version_compare(PHP_VERSION, '8.1.0', '>=') ? serialize($GLOBALS) : self::safe_serialize($GLOBALS)) .
|
||||
serialize($GLOBALS) .
|
||||
self::safe_serialize($_SESSION) .
|
||||
self::safe_serialize($_OLD_SESSION);
|
||||
$v = $seed = $_SESSION['seed'] = sha1($v, true);
|
||||
|
Loading…
Reference in New Issue
Block a user