Crates.io | rand-esdm |
lib.rs | rand-esdm |
version | 0.1.5 |
source | src |
created_at | 2023-08-10 17:47:09.097321 |
updated_at | 2024-07-23 14:25:42.766306 |
description | provides interface to ESDM RNG server |
homepage | |
repository | https://github.com/thillux/rand-esdm |
max_upload_size | |
id | 941217 |
size | 15,342 |
A small library for interfacing Rust with the ESDM user-space random server.
It currently provides the minimal amount of bindings necessary to use ESDM together with the rand crate.
rand-esdm = "0.0.3"
Choose type of rng:
let mut rng = EsdmRng::new(EsdmRngType::FullySeeded);
let mut rng = EsdmRng::new(EsdmRngType::PredictionResistant);
Include Rng utility trait from rand:
use rand::Rng;
Draw random numbers as needed, e.g.:
let rnd: u64 = rng.gen();