Function blobber::get_seeded_rng_blob [] [src]

pub fn get_seeded_rng_blob(bytes: usize, seed: u8) -> Vec<u8>

This function returns a vector of bytes generated with a very simple PRNG provided by the Rng struct. the rng will be seeded with the provided seed param. This is useful for genrating a repeatable blob (the same seed will always provide the same sequence) if you don't want to provide a template slice.