netfp 0.1.1

Rust primitives and implementations for network fingerprinting
Documentation
1
2
3
4
5
6
7
8
9
10
pub(crate) fn random_byte() -> u8 {
    rand::random()
}

/// Generates 32 random bytes using the thread-local random number generator.
pub fn random_32_bytes() -> [u8; 32] {
    let mut bytes = [0u8; 32];
    rand::fill(&mut bytes);
    bytes
}