package mirage-entropy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type 'a io = 'a Lwt.t
type buffer = Cstruct.t
type handler = source:int -> buffer -> unit
type token
type source = [
  1. | `Timer
  2. | `Rdseed
  3. | `Rdrand
  4. | `Xentropyd
]
val sources : t -> source list
val connect : unit -> t io
val disconnect : t -> unit io
val add_handler : t -> handler -> token io
val remove_handler : t -> token -> unit