package mirage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
The MirageOS library operating system
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-4.0.0.tbz
sha256=f804161872de6cf20699364f09d03370ed06aafffb12f1d586190832c73a194d
sha512=75c1c1cac4c6f862c0055381c7ced123785193234b40da8a8e238cb289cba1a4494378587c4edf2ed872aee7fbfc756f84087941c1037ac19cbd1733ff6cca6a
doc/src/mirage.impl/mirage_impl_random.ml.html
Source file mirage_impl_random.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27open Functoria open Mirage_impl_mclock open Mirage_impl_time type random = RANDOM let random = Type.v RANDOM let rng ?(time = default_time) ?(mclock = default_monotonic_clock) () = let keys = [ Mirage_key.(v prng) ] in let packages = [ package ~min:"0.8.0" ~max:"0.11.0" "mirage-crypto-rng-mirage"; package ~min:"3.0.0" ~max:"4.0.0" "mirage-random"; ] in let connect _ modname _ = (* here we could use the boot argument (--prng) to select the RNG! *) Fmt.str "%s.initialize (module Mirage_crypto_rng.Fortuna)" modname in impl ~keys ~packages ~connect "Mirage_crypto_rng_mirage.Make" (Mirage_impl_time.time @-> Mirage_impl_mclock.mclock @-> random) $ time $ mclock let default_random = rng () let nocrypto = Functoria.noop
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>