| Crates.io | random-fast-rng |
| lib.rs | random-fast-rng |
| version | 0.1.1 |
| created_at | 2019-08-26 20:33:07.143006+00 |
| updated_at | 2019-08-26 21:34:58.703872+00 |
| description | Rust library for Blazing fast non cryptographic random number generator |
| homepage | |
| repository | https://github.com/elichai/random-rs |
| max_upload_size | |
| id | 159860 |
| size | 7,901 |
A Rust library random-fast-rng That helps generate non-cryptographic blazing fast randomness.
The randomness provided here implements the random_trait::Random trait.
Add this to your Cargo.toml:
[dependencies]
random-fast-rng = "0.1"
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();
}