seedable_hash is the Rust library (by Piotr Beling) for calculating seedable hashes and fast reduction of their ranges.
seedable_hash conditionally supports hash functions from many crates:
- GxHash - enabled by
gxhashfeature, - wyhash - enabled by (default)
wyhashfeature, - xxh3 - enabled by
xxhash-rustfeature, - rapidhash - enabled by
rapidhashfeature, - Sip13 using unstable standard library feature
hashmap_internals- enabled bysip13feature, - Fowler–Noll–Vo - enabled by
fnvfeature, - standard
hash_map::DefaultHashervia [Seedable] wrapper - always enabled, - and others via [
Seedable] wrapper.
[BuildDefaultSeededHasher] is an alias to the fastest of the enabled methods, selected according to the order of the above list.
We recommend GxHash (gxhash feature) on the platforms it supports.
For hashing integers, we recommend Fx Hash wrapped by [Seedable].