[go: up one dir, main page]

Function gxhash32

Source
pub fn gxhash32(input: &[u8], seed: i64) -> u32
Expand description

Hashes an arbitrary stream of bytes to an u32.

ยงExample

let bytes = [42u8; 1000];
let seed = 1234;
println!("Hash is {:x}!", gxhash::gxhash32(&bytes, seed));