Skip to content

Commit b61573d

Browse files
committed
Logger: md5 replaced with xxHash
1 parent 4fe196b commit b61573d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracy/Logger/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function getExceptionFile(\Throwable $exception, string $level = self::EX
120120
];
121121
}
122122

123-
$hash = substr(md5(serialize($data)), 0, 10);
123+
$hash = substr(hash('xxh128', serialize($data)), 0, 10);
124124
$dir = strtr($this->directory . '/', '\\/', DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR);
125125
foreach (new \DirectoryIterator($this->directory) as $file) {
126126
if (strpos($file->getBasename(), $hash)) {

0 commit comments

Comments
 (0)