A fast, minimal memory, consistent hash algorithm.
Cargo dependencies:
[dependencies]
jumphash = "~0"
Rust code:
extern crate jumphash;
let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot(&"key", slot_count);
A fast, minimal memory, consistent hash algorithm.
Cargo dependencies:
[dependencies]
jumphash = "~0"
Rust code:
extern crate jumphash;
let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot(&"key", slot_count);