From b1c064a92fe5f13867e69ca336f7112ed7835b66 Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Wed, 28 Aug 2024 09:37:48 +0200 Subject: [PATCH] changed key hash --- src/main/rust/src/utils/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/rust/src/utils/hash.rs b/src/main/rust/src/utils/hash.rs index 4deb239..625474a 100644 --- a/src/main/rust/src/utils/hash.rs +++ b/src/main/rust/src/utils/hash.rs @@ -6,7 +6,7 @@ pub fn bytes(bytes: &[u8]) -> u64 { let shift = 64usize.saturating_sub(8 * bytes.len()); let khead = u64::from_ne_bytes(head) << shift; let ktail = u64::from_ne_bytes(tail) >> shift; - khead + ktail //let mut hash: u64 = 0; + khead + ktail } #[cfg(test)]