Crate blobber

Source
Expand description

Utility for generating random blobs of data

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 as long as the bytes parameter. The numbered param will be passed to get_string
get_rng_blob
This function returns a Vec<u8> generated with a very simple PRNG seeded with the unix epoch
get_seeded_rng_blob
This function returns a Vec<u8> generated with a very simple PRNG 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 bytes parameter. The template &str will be repeated the number of times required to reach the bytes if numbered is true, each iteration will be extened by the number plus ‘.’ and a space. Any overflow will be truncated