mirage-crypto-rng

A cryptographically secure PRNG
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library mirage-crypto-rng.lwt
val initialize : ?sleep:int64 -> unit -> unit

initialize ~sleep () will bring the RNG into a working state. The argument sleep is measured in ns (default 1s), and used to sleep between collection of entropy from the CPU RNG, every 10 * sleep getrandom is used to collect entropy.