pub fn gen_id(seed: u32) -> String {
        let mut gen = Worker::rng_from_seed(seed);

        //Vector of 16 bytes set to 0
        let mut key: Vec<u8> = iter::repeat(0u8).take(16).collect();
        //Fill the vector with 16 random bytes.
        gen.fill_bytes(&mut key[..]);
        key.to_hex()
    }
///Creates a worker_id based on a random seed.
Creates a worker_id based on a random seed.
Creates a worker_id based on a random seed .
pub fn gen_id(seed: u32) -> String {
        let mut gen = Worker::rng_from_seed(seed);
        //Vector of 16 bytes set to 0
        let mut key: Vec<u8> = iter::repeat(0u8).take(16).collect();
        //Fill the vector with 16 random bytes.
        gen.fill_bytes(&mut key[..]);
        key.to_hex()
    }
pub fn gen_id ( seed : u32 ) -> String { let mut gen = Worker :: rng_from_seed ( seed ) ; //Vector of 16 bytes set to 0 let mut key : Vec < u8 > = iter :: repeat ( 0u8 ) . take ( 16 ) . collect ( ) ; //Fill the vector with 16 random bytes. gen . fill_bytes ( & mut key [ .. ] ) ; key . to_hex ( ) }
Creates a worker_id based on a random seed.
Creates a worker_id based on a random seed .
seed
u32