Crate mb_rand

Source
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 data
  • random_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.