From 32113fec9958de5c6bfe6a077f1e6346a640f062 Mon Sep 17 00:00:00 2001 From: Leandro Ostera Date: Mon, 20 Nov 2023 09:16:42 +0100 Subject: [PATCH] fix: initialize rng --- sihl/src/web_csrf.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/sihl/src/web_csrf.ml b/sihl/src/web_csrf.ml index 5c17360d..73cdd7c3 100644 --- a/sihl/src/web_csrf.ml +++ b/sihl/src/web_csrf.ml @@ -33,6 +33,7 @@ let set token req = *) module Crypto = struct + let () = Mirage_crypto_rng_unix.initialize (module Mirage_crypto_rng.Fortuna) let block_size = 16 (** [token_length] is the amount of bytes used in the unencrypted CSRF tokens. *)