changed key hash

This commit is contained in:
Fabian Schmidt 2024-08-28 09:37:48 +02:00
parent ea06a600ce
commit b1c064a92f

View File

@ -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)]