jch

Crates.iojch
lib.rsjch
version1.0.0
sourcesrc
created_at2015-10-27 05:26:11.635622
updated_at2015-12-11 23:57:02.323352
descriptionJump Consistent Hash for Rust.
homepagehttps://github.com/beefsack/jch-rs
repositoryhttps://github.com/beefsack/jch-rs.git
max_upload_size
id3312
size3,352
Michael Alexander (beefsack)

documentation

README

jch-rs - Jump Consistent Hash for Rust

Build Status

Jump Consistent Hash is a linear complexity consistent hash algorithm described in John Lamping and Eric Veach's paper on the topic

Example

use jch;

let key = 5u64;
let num_buckets = 1024i32;
println!("{}", jch::hash(key, num_buckets));
Commit count: 3

cargo fmt