From 6472d7abce5ac9e16cc48943ec429ec59ad00f74 Mon Sep 17 00:00:00 2001 From: Louis Cruz Date: Sun, 28 Sep 2025 19:28:57 -0700 Subject: [PATCH] fix: prevent hash concatenation from causing hash collisions --- lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.js b/lib/index.js index 6013894..1419ef5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -30,7 +30,9 @@ function getTmpname (filename) { return filename + '.' + MurmurHash3(__filename) .hash(String(process.pid)) + .hash('\0') .hash(String(threadId)) + .hash('\0') .hash(String(++invocations)) .result() }