nocrypto
type g
exception Unseeded_generator
module S : sig ... end
module Generators : sig ... end
val create : ?g:'a -> ?seed:Cstruct.t -> ?strict:bool -> (module S.Generator with type g = 'a) -> g
val generator : g Pervasives.ref
val generate : ?g:g -> int -> Cstruct.t
val block : g option -> int
val reseed : ?g:g -> Cstruct.t -> unit
val accumulate : g option -> (source:int -> Cstruct.t -> unit) Uncommon.one
val seeded : g option -> bool
module N_gen (N : Numeric.S) : S.N with type t = N.t
module Int : S.N with type t = int
module Int32 : S.N with type t = int32
module Int64 : S.N with type t = int64
module Z : S.N with type t = Z.t
val prime : ?g:g -> ?msb:int -> int -> Z.t
val safe_prime : ?g:g -> int -> Z.t * Z.t