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.
toml
rand-esdm = "0.0.2"
rust
esdm_rng_init_checked();
Choose type of rng:
let mut rng = EsdmRngFullySeeded {};
let mut rng = EsdmRngPredictionResistant {};
Include Rng utility trait from rand:
rust
use rand::Rng;
Draw random numbers as needed, e.g.:
rust
let rnd: u64 = rng.gen();
rust
esdm_rng_fini();