tindercrypt 0.3.4

Data encryption with symmetric cryptographic keys or passwords/passphrases, and self-contained encryption metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! # Utilities for random numbers

use rand::{rng, Rng};

/// Fill a buffer with random data.
///
/// ```
/// use tindercrypt::rand::fill_buf;
///
/// let mut buf = [0u8; 32];
/// fill_buf(&mut buf);
/// ```
pub fn fill_buf(buf: &mut [u8]) {
    rng().fill(buf);
}