package mirage-crypto-entropy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

The type of the entropy device.

type source = [
  1. | `Timer
  2. | `Rdseed
  3. | `Rdrand
]

A polymorphic variant of entropy sources.

val pp_source : Format.formatter -> source -> unit

pp_source ppf source pretty-prints source on ppf.

val sources : unit -> source list

sources () is a list of supported entropy sources on your platform.

val initialize : ?g:'a -> (module Mirage_crypto_rng.Generator with type g = 'a) -> t Lwt.t

initialize ~g rng_module sets the default generator to the rng_module and sets up periodic entropy feeding for that rng. This function raises if it is called a second time.