fn random_padding(bytes: &mut Vec<u8>) {
    let mut rng = rand::thread_rng();
    let n1: usize = rng.gen_range(5, 10);
    let n2: usize = rng.gen_range(5, 10);
    let mut values: [u8; 20] = rng.gen();
    bytes.splice(0..0, values[0..n1].iter().cloned());
    bytes.append(&mut values[10..10 + n2].to_vec());
}
/// Appends and prepends 5 to 10 bytes of random data to the given vector
Appends and prepends 5 to 10 bytes of random data to the given vector
Appends and prepends 5 to 10 bytes of random data to the given vector
fn random_padding(bytes: &mut Vec<u8>) {
    let mut rng = rand::thread_rng();
    let n1: usize = rng.gen_range(5, 10);
    let n2: usize = rng.gen_range(5, 10);
    let mut values: [u8; 20] = rng.gen();
    bytes.splice(0..0, values[0..n1].iter().cloned());
    bytes.append(&mut values[10..10 + n2].to_vec());
}
fn random_padding ( bytes : & mut Vec < u8 > ) { let mut rng = rand :: thread_rng ( ) ; let n1 : usize = rng . gen_range ( 5 , 10 ) ; let n2 : usize = rng . gen_range ( 5 , 10 ) ; let mut values : [ u8 ; 20 ] = rng . gen ( ) ; bytes . splice ( 0 .. 0 , values [ 0 .. n1 ] . iter ( ) . cloned ( ) ) ; bytes . append ( & mut values [ 10 .. 10 + n2 ] . to_vec ( ) ) ; }
Appends and prepends 5 to 10 bytes of random data to the given vector
Appends and prepends 5 to 10 bytes of random data to the given vector
bytes
&mut Vec<u8>