[][src]Function secret_keeper_test_util::random_fill_text

pub fn random_fill_text(rng: &mut FastRng, buf: &mut [u8])

Fill buffer with random (English) word-like text

use secret_keeper_test_util::{random_fill_text, uninitialized_bytes};
use random_fast_rng::FastRng;
const BUF_LEN:usize = 256;
let mut rng = FastRng::new();
let mut buf = uninitialized_bytes(BUF_LEN);
random_fill_text(&mut rng, &mut buf);