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 bytes parameter. The numbered will prefix each iteration of lorem ipsum.

get_rng_blob
get_string

This function returns a string at least as long as the bytes parameter. The template &str will be repeated the number of times required to reach the bytes exceeding the value if it doesn't evenly divide into the bytes if numbered is true, each iteration will be extened by the number plus '.' and a space. Any overflow will be truncated