Skip to content

Commit

Permalink
fix: initialize mirage crypto rng
Browse files Browse the repository at this point in the history
  • Loading branch information
eWert-Online committed Sep 21, 2024
1 parent 813de28 commit 0e9bf87
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/Main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ let default_cmd =
handle_response
@@ Eio_main.run
@@ fun env ->
Mirage_crypto_rng_eio.run (module Mirage_crypto_rng.Fortuna) env
@@ fun () ->
Lwt_eio.with_event_loop ~clock:(Eio.Stdenv.clock env)
@@ fun _ -> Eio.Switch.run @@ fun sw -> run ~sw ~env
in
Expand Down
11 changes: 10 additions & 1 deletion bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
(public_name osnap)
(package osnap)
(ocamlopt_flags -O3)
(libraries OSnap cmdliner lwt_eio eio eio.core eio_main fmt))
(libraries
OSnap
cmdliner
mirage-crypto-rng
mirage-crypto-rng-eio
lwt_eio
eio
eio.core
eio_main
fmt))
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
eio_main
lwt_eio
httpun-eio
mirage-crypto-rng-eio
base64
cdp
cmdliner
Expand Down
1 change: 1 addition & 0 deletions osnap.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ depends: [
"eio_main"
"lwt_eio"
"httpun-eio"
"mirage-crypto-rng-eio"
"base64"
"cdp"
"cmdliner"
Expand Down

0 comments on commit 0e9bf87

Please sign in to comment.