changed key hash
This commit is contained in:
parent
ea06a600ce
commit
b1c064a92f
@ -6,7 +6,7 @@ pub fn bytes(bytes: &[u8]) -> u64 {
|
|||||||
let shift = 64usize.saturating_sub(8 * bytes.len());
|
let shift = 64usize.saturating_sub(8 * bytes.len());
|
||||||
let khead = u64::from_ne_bytes(head) << shift;
|
let khead = u64::from_ne_bytes(head) << shift;
|
||||||
let ktail = u64::from_ne_bytes(tail) >> shift;
|
let ktail = u64::from_ne_bytes(tail) >> shift;
|
||||||
khead + ktail //let mut hash: u64 = 0;
|
khead + ktail
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user