Skip to content

Commit 6a921e8

Browse files
committed
md5 replaced with xxHash
1 parent d7e584c commit 6a921e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ private function generateCacheFileName(): string
503503
throw new \LogicException('Set path to temporary directory using setTempDirectory().');
504504
}
505505

506-
return $this->tempDirectory . '/' . md5(serialize($this->generateCacheKey())) . '.php';
506+
return $this->tempDirectory . '/' . hash(PHP_VERSION_ID < 80100 ? 'md5' : 'xxh128', serialize($this->generateCacheKey())) . '.php';
507507
}
508508

509509

0 commit comments

Comments
 (0)