docs.rs failed to build rand-esdm-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
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
= "0.0.3"
Generate Random Numbers with rand crate
Choose type of rng:
- Only usable when fully seeded:
let mut rng = EsdmRng::new(EsdmRngType::FullySeeded);
- Only usable with fresh entropy:
let mut rng = EsdmRng::new(EsdmRngType::PredictionResistant);
Include Rng utility trait from rand:
use Rng;
Draw random numbers as needed, e.g.:
let rnd: u64 = rng.gen;