Skip to content

Commit

Permalink
fix: initialize rng
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Nov 20, 2023
1 parent ecb35fd commit 32113fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sihl/src/web_csrf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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. *)
Expand Down

0 comments on commit 32113fe

Please sign in to comment.