Skip to content

Commit

Permalink
Merge pull request #2337 from clecat/fix_rng
Browse files Browse the repository at this point in the history
Mirage crypto initialization
  • Loading branch information
art-w committed Sep 18, 2024
2 parents 675f08f + b7499df commit 2f2ad48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions irmin-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ depends: [
"irmin-test" {= version & with-test}
"alcotest-lwt" {with-test & >= "1.8.0"}
"irmin-watcher" {with-test & >= "0.5.0"}
"mirage-crypto-rng-lwt" {with-test & >= "1.1.0"}
]
build: [
["dune" "subst"] {pinned}
Expand Down
1 change: 1 addition & 0 deletions test/irmin-client/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
websocket-lwt-unix
conduit-lwt-unix
alcotest-lwt
mirage-crypto-rng-lwt
irmin-test
irmin-watcher)
(enabled_if
Expand Down
3 changes: 3 additions & 0 deletions test/irmin-client/util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*)

open Lwt.Infix

let () = Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna)

module Store = Irmin_mem.KV.Make (Irmin.Contents.String)
module Client = Irmin_client_unix.Make (Store)
module Server = Irmin_server_unix.Make (Store)
Expand Down

0 comments on commit 2f2ad48

Please sign in to comment.