Skip to content

Commit 2f2ad48

Browse files
authored
Merge pull request #2337 from clecat/fix_rng
Mirage crypto initialization
2 parents 675f08f + b7499df commit 2f2ad48

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: irmin-client.opam

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ depends: [
2424
"irmin-test" {= version & with-test}
2525
"alcotest-lwt" {with-test & >= "1.8.0"}
2626
"irmin-watcher" {with-test & >= "0.5.0"}
27+
"mirage-crypto-rng-lwt" {with-test & >= "1.1.0"}
2728
]
2829
build: [
2930
["dune" "subst"] {pinned}

Diff for: test/irmin-client/dune

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
websocket-lwt-unix
99
conduit-lwt-unix
1010
alcotest-lwt
11+
mirage-crypto-rng-lwt
1112
irmin-test
1213
irmin-watcher)
1314
(enabled_if

Diff for: test/irmin-client/util.ml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*)
1616

1717
open Lwt.Infix
18+
19+
let () = Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna)
20+
1821
module Store = Irmin_mem.KV.Make (Irmin.Contents.String)
1922
module Client = Irmin_client_unix.Make (Store)
2023
module Server = Irmin_server_unix.Make (Store)

0 commit comments

Comments
 (0)