Crate jumphash

Source
Expand description

An implementation of the Jump Consistent Hash Algorithm.

§Example

extern crate jumphash;

let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot(&"key", slot_count);

Structs§

CustomJumpHasher
A jump hash instance with a custom hash function.
JumpHasher
A default jump hash instance with the default, recommended hash function.