diff --git a/Cloner/VarCloner.php b/Cloner/VarCloner.php index f02a59d5..b5bd252f 100644 --- a/Cloner/VarCloner.php +++ b/Cloner/VarCloner.php @@ -45,7 +45,7 @@ protected function doClone($var) // or null if the original value is used directly if (!$gid = self::$gid) { - $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 } $arrayStub = new Stub(); $arrayStub->type = Stub::TYPE_ARRAY;