From 351da30308ae233ac9c096d579d243b1d10edef4 Mon Sep 17 00:00:00 2001 From: Adithya Dsilva Date: Thu, 11 Jun 2026 01:59:22 +0530 Subject: [PATCH] Make hash_bytes function public. Helpful for hashing raw bytes without having to construct an explicit hasher --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b3270c3..4b64d84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -286,7 +286,7 @@ fn multiply_mix(x: u64, y: u64) -> u64 { /// We don't bother avalanching here as we'll feed this hash into a /// multiplication after which we take the high bits, which avalanches for us. #[inline] -fn hash_bytes(bytes: &[u8]) -> u64 { +pub fn hash_bytes(bytes: &[u8]) -> u64 { let len = bytes.len(); let mut s0 = SEED1; let mut s1 = SEED2;