diff --git a/dream.opam b/dream.opam index fc9c0c12..d62d7fd2 100644 --- a/dream.opam +++ b/dream.opam @@ -69,9 +69,8 @@ depends: [ "magic-mime" "markup" {>= "1.0.2"} "mirage-clock" {>= "3.0.0"} # now_d_ps : unit -> int * int64. - "mirage-crypto" {>= "1.0.0"} - "mirage-crypto-rng" {>= "1.0.0"} - "mirage-crypto-rng-lwt" + "mirage-crypto" {>= "1.2.0"} + "mirage-crypto-rng" {>= "1.2.0"} "multipart_form" {>= "0.4.0"} "multipart_form-lwt" "ocaml" {>= "4.08.0"} diff --git a/src/dream.ml b/src/dream.ml index 07b9248a..06d0130b 100644 --- a/src/dream.ml +++ b/src/dream.ml @@ -56,7 +56,7 @@ let now () = let () = Random.initialize (fun () -> - Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna)) + Mirage_crypto_rng_unix.use_default ()) module Session = struct diff --git a/src/dune b/src/dune index a82c981c..e40646fc 100644 --- a/src/dune +++ b/src/dune @@ -16,6 +16,6 @@ logs lwt lwt.unix - mirage-crypto-rng-lwt + mirage-crypto-rng.unix ptime.clock.os ))