Skip to content

Commit

Permalink
md5 replaced with xxHash
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 18, 2024
1 parent d7e584c commit 6a921e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RobotLoader/RobotLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ private function generateCacheFileName(): string
throw new \LogicException('Set path to temporary directory using setTempDirectory().');
}

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


Expand Down

0 comments on commit 6a921e8

Please sign in to comment.