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 2c22d29 + 13c0316 commit 6dae469Copy full SHA for 6dae469
Cloner/VarCloner.php
@@ -46,7 +46,7 @@ protected function doClone($var)
46
// or null if the original value is used directly
47
48
if (!$gid = self::$gid) {
49
- $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
50
}
51
$arrayStub = new Stub();
52
$arrayStub->type = Stub::TYPE_ARRAY;
0 commit comments