| Crates.io | jch |
| lib.rs | jch |
| version | 1.0.0 |
| created_at | 2015-10-27 05:26:11.635622+00 |
| updated_at | 2015-12-11 23:57:02.323352+00 |
| description | Jump Consistent Hash for Rust. |
| homepage | https://github.com/beefsack/jch-rs |
| repository | https://github.com/beefsack/jch-rs.git |
| max_upload_size | |
| id | 3312 |
| size | 3,352 |
Jump Consistent Hash is a linear complexity consistent hash algorithm described in John Lamping and Eric Veach's paper on the topic
use jch;
let key = 5u64;
let num_buckets = 1024i32;
println!("{}", jch::hash(key, num_buckets));