From 31d80c4a56afa3fc850abb86c742b3473450ea4a Mon Sep 17 00:00:00 2001 From: numbers Date: Tue, 19 Sep 2023 18:42:44 -0400 Subject: [PATCH] . --- src/hash.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash.rs b/src/hash.rs index 66ebb24..af6de34 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -26,11 +26,11 @@ pub const fn hash32(bytes: &[u32]) -> u64 { } //noinspection DuplicatedCode -pub const fn hash64(bytes: &[u32]) -> u64 { +pub const fn hash64(bytes: &[u64]) -> u64 { let mut hash = INITIAL_STATE; let mut i = 0; while i < bytes.len() { - hash = hash ^ bytes[i] as u64; + hash = hash ^ bytes[i]; hash = hash.wrapping_mul(PRIME); i += 1; }