Closed kit-ty-kate closed 1 year ago
Note as well that the underlying Random.State.t
representation has changed from a record to a bigarray and the PRNG algorithm is now splittable to work across domains. At the moment ppx_inline_test
segfaults because of it's use of the random module and setting the state i.e. this breaks:
let () =
let state = Base.Random.State.make [| 111; 222; 333 |] in
Base.Random.set_state state
I have a very rough and ready fix here https://github.com/patricoferris/base/commit/58afb336acf9923b7d7405665fd68f6c0cdcbbc6 that I can use for OCaml 5.0.0 but I'm not sure what the backwards compatible version would look like.