cryptograph 0.1.13

All you need for encrypthing your messages.
Documentation
1
2
3
4
5
6
7
8
9
use rand::TryRng;
use rand::rngs::SysRng;

pub fn generate_seed(n: usize) -> Vec<bool> {
    let mut rng = SysRng;
    (0..n)
        .map(|_| rng.try_next_u32().unwrap() & 1 == 1)
        .collect()
}