From be3414764550bd39096c1ab19d565f40122ae525 Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Tue, 20 Jan 2026 08:52:10 +0100 Subject: [PATCH] Tweak hash mixing --- crates/nailkov/src/token.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nailkov/src/token.rs b/crates/nailkov/src/token.rs index bfdfdbc..f731eb5 100644 --- a/crates/nailkov/src/token.rs +++ b/crates/nailkov/src/token.rs @@ -59,7 +59,7 @@ impl TokenPair { } /// Use the precomputed hashes to generate a secondary hash. - /// Method from [fastbloom](https://github.com/tomtomwombat/fastbloom/blob/main/src/hasher.rs#L190), + /// Method from [fastbloom](https://github.com/tomtomwombat/fastbloom/blob/main/src/hasher.rs#L182), /// which was in turn adapted from . #[inline(always)] fn mix_hashes(&self) -> u64 { @@ -67,8 +67,8 @@ impl TokenPair { .0 .digest() .hash() - .wrapping_add(self.right.0.digest().hash()) .rotate_left(5) + .wrapping_add(self.right.0.digest().hash()) } } -- 2.51.2