Skip to content

Commit 448ad35

Browse files
committed
typos in rng documentation
1 parent 9650c3f commit 448ad35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rng/mirage_crypto_rng.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
stream of entropy.
3737
3838
[mirage-crypto-rng-eio] package differs slightly from other rng packages.
39-
Instead of the [initilize] function a [run] function is provided with
39+
Instead of the [initialize] function a [run] function is provided with
4040
similar behaviour, i.e. RNG setup, entropy collection and periodic reseeding.
4141
4242
Although this module exposes a more fine-grained interface, e.g. allowing

rng/rng.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let setup_rng =
1111
collection and periodic reseeding as a background task, do the \
1212
following:\
1313
\n If you are using MirageOS, use the random device in config.ml: \
14-
`let main = Mirage.foreign \"Unikernel.Main\" (random @-> job)`, \
14+
`let main = Mirage.main \"Unikernel.Main\" (random @-> job)`, \
1515
and `let () = register \"my_unikernel\" [main $ default_random]`. \
1616
\n If you are using Lwt, execute \
1717
`Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna)` \

0 commit comments

Comments
 (0)