diff --git a/rng/mirage_crypto_rng.mli b/rng/mirage_crypto_rng.mli index fd171f52..3f990b1b 100644 --- a/rng/mirage_crypto_rng.mli +++ b/rng/mirage_crypto_rng.mli @@ -36,7 +36,7 @@ stream of entropy. [mirage-crypto-rng-eio] package differs slightly from other rng packages. - Instead of the [initilize] function a [run] function is provided with + Instead of the [initialize] function a [run] function is provided with similar behaviour, i.e. RNG setup, entropy collection and periodic reseeding. Although this module exposes a more fine-grained interface, e.g. allowing diff --git a/rng/rng.ml b/rng/rng.ml index 89722e25..cc86d5db 100644 --- a/rng/rng.ml +++ b/rng/rng.ml @@ -11,7 +11,7 @@ let setup_rng = collection and periodic reseeding as a background task, do the \ following:\ \n If you are using MirageOS, use the random device in config.ml: \ - `let main = Mirage.foreign \"Unikernel.Main\" (random @-> job)`, \ + `let main = Mirage.main \"Unikernel.Main\" (random @-> job)`, \ and `let () = register \"my_unikernel\" [main $ default_random]`. \ \n If you are using Lwt, execute \ `Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna)` \