/usr/lib/ocaml/netsys/netsys_rng.mli is in libocamlnet-ocaml-dev 3.7.3-3build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | (* $Id: netsys_rng.mli 1542 2011-02-06 15:05:08Z gerd $ *)
(** Random-number generator *)
(** This is an interface to an OS-provided RNG that is fast and nevertheless
secure enough for creating session keys. Note that it should not be used
for creating long-term keys.
On Unix, the [/dev/urandom] device is used. If it is not available, the
functions fail.
On Win32, an RNG is obtained using [CryptAcquireContext].
*)
val set_rng : (string -> unit) -> unit
(** Sets the globally used RNG *)
val fill_random : string -> unit
(** Fills this string with random bytes *)
|