Skip to content

Commit

Permalink
Set by default the generator's random_state to its default value
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Sep 27, 2023
1 parent 3783dd0 commit c523827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/generate/gen_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
open Tezos_protocol_017_PtNairob
open Tezos_micheline

let random_state = Random.State.make_self_init ()
let random_state =
match Sys.getenv_opt "RAND" with
| Some "1" -> Random.State.make_self_init ()
| _ -> Random.get_state ()

let micheline_too_large_or_too_deep expr =
try
Expand Down

0 comments on commit c523827

Please sign in to comment.