From 51e54a23eeb2807e838e756bd8cd681180356559 Mon Sep 17 00:00:00 2001 From: xvw Date: Tue, 4 Mar 2025 10:53:33 +0100 Subject: [PATCH] Upgrade to `mirage-crypto-rng` and relay on `use_default` --- examples/sync.ml | 2 +- irmin-client.opam | 2 +- test/irmin-client/dune | 2 +- test/irmin-client/util.ml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/sync.ml b/examples/sync.ml index ac4f2bfaff..b6b33b1768 100644 --- a/examples/sync.ml +++ b/examples/sync.ml @@ -16,7 +16,7 @@ open Lwt.Syntax -let () = Mirage_crypto_rng_unix.initialize (module Mirage_crypto_rng.Fortuna) +let () = Mirage_crypto_rng_unix.use_default () let info = Irmin_git_unix.info let path = diff --git a/irmin-client.opam b/irmin-client.opam index 2b18e4a22b..2d5960987b 100644 --- a/irmin-client.opam +++ b/irmin-client.opam @@ -24,7 +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"} + "mirage-crypto-rng" {with-test & >= "2.0.0"} ] build: [ ["dune" "subst"] {dev} diff --git a/test/irmin-client/dune b/test/irmin-client/dune index 4c0627d9b9..461b9c32f1 100644 --- a/test/irmin-client/dune +++ b/test/irmin-client/dune @@ -8,7 +8,7 @@ websocket-lwt-unix conduit-lwt-unix alcotest-lwt - mirage-crypto-rng-lwt + mirage-crypto-rng.unix irmin-test irmin-watcher) (enabled_if diff --git a/test/irmin-client/util.ml b/test/irmin-client/util.ml index 60a3e63404..81a8055ff6 100644 --- a/test/irmin-client/util.ml +++ b/test/irmin-client/util.ml @@ -16,7 +16,7 @@ open Lwt.Infix -let () = Mirage_crypto_rng_lwt.initialize (module Mirage_crypto_rng.Fortuna) +let () = Mirage_crypto_rng_unix.use_default () module Store = Irmin_mem.KV.Make (Irmin.Contents.String) module Client = Irmin_client_unix.Make (Store)