pub trait RandomGeneratorTemplate {
    // Required methods
    fn get_random_bytes(&mut self, len: usize) -> Vec<u8>;
    fn get_random_usize(&mut self, min: usize, max: usize) -> usize;
    fn get_random_u32(&mut self) -> u32;
    fn get_random_u64(&mut self) -> u64;
    fn get_random_string(&mut self, len: usize) -> String;
    fn get_random_alphanumeric(&mut self, len: usize) -> String;
    fn generate_key(&mut self, len: usize) -> Vec<u8>;
}

Required Methods§

source

fn get_random_bytes(&mut self, len: usize) -> Vec<u8>

source

fn get_random_usize(&mut self, min: usize, max: usize) -> usize

source

fn get_random_u32(&mut self) -> u32

source

fn get_random_u64(&mut self) -> u64

source

fn get_random_string(&mut self, len: usize) -> String

source

fn get_random_alphanumeric(&mut self, len: usize) -> String

source

fn generate_key(&mut self, len: usize) -> Vec<u8>

Implementors§