We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6a5be9 + 6dae469 commit 254110cCopy full SHA for 254110c
Cloner/VarCloner.php
@@ -45,7 +45,7 @@ protected function doClone($var)
45
// or null if the original value is used directly
46
47
if (!$gid = self::$gid) {
48
- $gid = self::$gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable
+ $gid = self::$gid = md5(random_bytes(6)); // Unique string used to detect the special $GLOBALS variable
49
}
50
$arrayStub = new Stub();
51
$arrayStub->type = Stub::TYPE_ARRAY;
0 commit comments