Function farmhash::fingerprint32 [−][src]
pub fn fingerprint32(s: &[u8]) -> u32
Create a new farmhash based u32 for an array of bytes. Fingerprint value should be portable and stable across library versions and platforms.
Examples
let value: &str = "hello world"; let res32 = farmhash::fingerprint32(&value.as_bytes()); //res32 ==> 430397466