rand-esdm

About

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.

Usage Example

Add rand-esdm to your Cargo.toml

toml rand-esdm = "0.0.2"

Init library once in your usage context

rust esdm_rng_init_checked();

Generate Random Numbers with rand crate

Choose type of rng:

Include Rng utility trait from rand: rust use rand::Rng;

Draw random numbers as needed, e.g.: rust let rnd: u64 = rng.gen();

Destroy library context when done

rust esdm_rng_fini();