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
bytesparameter. Thenumberedparam will be passed toget_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
bytesparameter. Thetemplate&strwill be repeated the number of times required to reach thebytesifnumberedis true, each iteration will be extened by the number plus ‘.’ and a space. Any overflow will be truncated