Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  [VarDumper] fix side-effect by not using mt_rand()
  • Loading branch information
fabpot committed Mar 18, 2020
2 parents e6a5be9 + 6dae469 commit 254110c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cloner/VarCloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 254110c

Please sign in to comment.