1 2 3 4 5 6 7 8
pub fn get_bytes_hash(bytes: &[u8]) -> u64 { use std::hash::Hasher; use twox_hash::XxHash64; let mut hasher = XxHash64::default(); hasher.write(bytes); hasher.finish() }