[VarDumper] fix side-effect by not using mt_rand()
This commit is contained in:
parent
2baa8128ad
commit
8c85f91b9c
@ -48,8 +48,8 @@ class VarCloner extends AbstractCloner
|
|||||||
// or null if the original value is used directly
|
// or null if the original value is used directly
|
||||||
|
|
||||||
if (!self::$hashMask) {
|
if (!self::$hashMask) {
|
||||||
self::$gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable
|
|
||||||
self::initHashMask();
|
self::initHashMask();
|
||||||
|
self::$gid = md5(dechex(self::$hashMask)); // Unique string used to detect the special $GLOBALS variable
|
||||||
}
|
}
|
||||||
$gid = self::$gid;
|
$gid = self::$gid;
|
||||||
$hashMask = self::$hashMask;
|
$hashMask = self::$hashMask;
|
||||||
|
Reference in New Issue
Block a user