Crate blobber [−] [src]
Utility for generating random blobs of data ``` let lorem = get_lorem(1024, true); assert!(lorem.as_bytes() >= 1024);
let junk = get_string(1024, "junk", false); assert!(junk.as_bytes() >= 1024);
let blob = get_blob(1024, &[1, 2, 3]); assert!(test_val.len() >= 1024); ```
Functions
get_blob |
Get a vector of u8 values the length of the bytes param the template param will be repeated to fill the return value |
get_lorem |
This function returns a string at least as long as the
|
get_rng_blob |
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 default seed |
get_seeded_rng_blob |
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. |
get_string |
This function returns a string length of the
|