Function xxhash2::hash32 [] [src]

pub fn hash32(data: &[u8], seed: u32) -> u32

Hash a block of bytes with a given seed, returning the 32-bit hash.

This function, optimized for speed, will hash an entire block all at once and return the hash value.

Examples

assert_eq!(xxhash2::hash32(&[1, 2, 3, 4], 0), 4271296924);