1 unstable release
Uses old Rust 2015
0.1.1 | Aug 26, 2019 |
---|---|
0.1.0 |
|
#2601 in Algorithms
578 downloads per month
Used in 7 crates
(6 directly)
23KB
383 lines
random-random-fast-rng
A Rust library random-fast-rng That helps generate non-cryptographic blazing fast randomness.
The randomness provided here implements the random_trait::Random
trait.
Usage
Add this to your Cargo.toml
:
[dependencies]
random-fast-rng = "0.1"
Examples
use random_fast_rng::{FastRng, Random};
fn do_something() {
let mut rng = FastRng::new();
let i: u64 = rng.gen();
let b: [u8; 12] = rng.gen();
}