Expand description
§mb_rand
A Rust library crate providing safe bindings to OpenBSD’s arc4random functions.
This crate provides two main functions:
fill_bytes
- Fills a byte array with random datarandom_string
- Generates a random string of a specified length from a character set
Functions§
- fill_
bytes - Fill a byte array with random data.
- random_
bytes - Generate random data of specified length and return it as a
Vec<u8>
. - random_
string - Generate a random string of specified length from a set of characters.