XXH64 (xxHash, 64-bit), for placing keys on shards.
shard_for/2 is pinned forever: changing it moves every key to a different
shard. It matches the reference implementation (checked against the
twox-hash crate in the tests).
Summary
Functions
The shard for key: xxh64(key, 0) mod shards.
XXH64 of data with seed, as an unsigned 64-bit integer.
Functions
@spec shard_for(binary(), pos_integer()) :: non_neg_integer()
The shard for key: xxh64(key, 0) mod shards.
@spec xxh64(binary(), non_neg_integer()) :: non_neg_integer()
XXH64 of data with seed, as an unsigned 64-bit integer.