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 | |
get_string |
This function returns a string at least as long as the
|