pub fn generate(
input: &Vec<u8>,
seed: Option<u32>,
maxsize: Option<usize>,
) -> Vec<u8>
Expand description
This function generates a new buffer from an existing buffer.
ยงArguments
input
- A vector of bytes used as input to radamsa.seed
- An optional seeded value to pass to radamsa. If left as None it increments from 0 after each call.maxsize
- An optional maximum value for the output buffer size. Default: DEFAULT_BUF_SIZE.