Function farmhash::fingerprint64[][src]

pub fn fingerprint64(s: &[u8]) -> u64

Create a stable farmhash based u64 for an array of bytes. Fingerprint value should be portable and stable across library versions and platforms.

Examples

let value: &str = "hello world";
let res64 = farmhash::fingerprint64(&value.as_bytes());
//res64 ==> 6381520714923946011