Skip to content

Commit 54f93ba

Browse files
committed
Use xxh128 instead of md5
1 parent 48796b4 commit 54f93ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cloner/VarCloner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function doClone(mixed $var): array
4141
$stub = null; // Stub capturing the main properties of an original item value
4242
// or null if the original value is used directly
4343

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

0 commit comments

Comments
 (0)