paladin-core 0.4.3

A Rust distributed algorithm toolkit. Write distributed algorithms without the complexities of distributed systems programming.
Documentation
1
2
3
4
5
6
7
8
9
use rand::{distributions::Alphanumeric, Rng};

pub fn get_random_routing_key() -> String {
    rand::thread_rng()
        .sample_iter(&Alphanumeric)
        .take(5)
        .map(char::from)
        .collect()
}