package mirage-crypto-rng

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

RNG seeding on Unix.

This module provides the RNG Getrandom which calls getrandom () for each generate request. On BSD systems (FreeBSD, OpenBSD, macOS) getentropy () is used instead.

Calling initialize is enough to bring the RNG into a working state.

initialize is idempotent as long as the default generator is unchanged. It is harmless to call it several times.

val initialize : unit -> unit
OCaml

Innovation. Community. Security.