# CKey
[CKey](https://gitlab.com/ufoot/ckey) is an experimental consistent hash key library, implemented in [Rust](https://www.rust-lang.org/).
See the [theory about consistent hashing](https://en.wikipedia.org/wiki/Consistent_hashing).
This library provides 256-bit keys, with some helpers.
Internally, keys are stored on 4 unsigned integers of 64-bit each.

# Status
For now this is a toy project, clearly *NOT* suitable for production use.
[](https://gitlab.com/ufoot/ckey/pipelines)
# Usage
```rust
use ckey::CKey;
let k1 = CKey::new_rand();
let k2 = k1.next();
print!("k1:{:?} k2:{:?}\n", k1, k2);
```
# License
Ckey is licensed under the [MIT](https://gitlab.com/ufoot/ckey/blob/main/LICENSE) license.