Skip to content

hash #


hash provides a way to hash binary data, i.e. produce a shorter value, that is highly content dependent, so even slightly different content will produce widely different hashes.

Hash functions are useful for implementing maps, caches etc.

fn sum64 #

fn sum64(key []u8, seed u64) u64

fn sum64_string #

fn sum64_string(key string, seed u64) u64

fn wyhash64_c #

fn wyhash64_c(a u64, b u64) u64

fn wyhash_c #

fn wyhash_c(key &u8, len u64, seed u64) u64

fn wymum #

fn wymum(a u64, b u64) u64