fn random_ascii_string(rng: &mut SmallRng, len: usize) -> String {
    let mut s = String::new();
    for _ in 0..len {
        // s.push(*rng.choose(CHARS).unwrap() as char);
        s.push(CHARS[rng.gen_range(0 .. CHARS.len())] as char);
    }
    s
}
// Gross. Find a way to reuse the code from random_unicode_string.
Gross. Find a way to reuse the code from random_unicode_string.
Gross . Find a way to reuse the code from random_unicode_string .
fn random_ascii_string(rng: &mut SmallRng, len: usize) -> String {
    let mut s = String::new();
    for _ in 0..len {
        // s.push(*rng.choose(CHARS).unwrap() as char);
        s.push(CHARS[rng.gen_range(0 .. CHARS.len())] as char);
    }
    s
}
fn random_ascii_string ( rng : & mut SmallRng , len : usize ) -> String { let mut s = String :: new ( ) ; for _ in 0 .. len { // s.push(*rng.choose(CHARS).unwrap() as char); s . push ( CHARS [ rng . gen_range ( 0 .. CHARS . len ( ) ) ] as char ) ; } s }
Gross.
Gross .
rng
&mut SmallRng
len
usize