package mirage-crypto-rng-async
Feed the entropy source in an Async-friendly way
Install
Dune Dependency
Authors
Maintainers
Sources
mirage-crypto-0.10.7.tbz
sha256=3e818a760c235c5b684c7b6b43b1cdd2a7dd04e0105b680d524f836eb988a69c
sha512=e9c3e6ac0fa3dae2dda9e91d5362ad08aaa65241b968a0c12484db4042146d6af7b46910784ce41bdd68783eede93f35a81aa37a2cd125dfc43503c78007b8b9
doc/mirage-crypto-rng-async/Mirage_crypto_rng_async/index.html
Module Mirage_crypto_rng_async
Source
RNG seeding on Async.
This module initializes a Fortuna RNG with getrandom()
, and CPU RNG.
Source
val initialize :
?g:'a ->
?time_source:Async.Synchronous_time_source.t ->
?sleep:Core.Time_ns.Span.t ->
'a Mirage_crypto_rng.generator ->
unit
initialize ~sleep generator
will bring the RNG into a working state. The argument sleep
is measured in ns (default 1s), and used to sleep between collection of entropy from the CPU RNG, every 10 * sleep
getrandom is used to collect entropy.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>