Skip to content

Commit

Permalink
Use xxh128 instead of md5
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Feb 9, 2023
1 parent 48796b4 commit 54f93ba
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 @@ -41,7 +41,7 @@ protected function doClone(mixed $var): array
$stub = null; // Stub capturing the main properties of an original item value
// or null if the original value is used directly

$gid = self::$gid ??= md5(random_bytes(6)); // Unique string used to detect the special $GLOBALS variable
$gid = self::$gid ??= hash('xxh128', random_bytes(6)); // Unique string used to detect the special $GLOBALS variable
$arrayStub = new Stub();
$arrayStub->type = Stub::TYPE_ARRAY;
$fromObjCast = false;
Expand Down

0 comments on commit 54f93ba

Please sign in to comment.