Random number generators not split across domains, unlike in Stdlib
#170
Labels
forwarded-to-js-devs
This report has been forwarded to Jane Street's internal review system.
From 5.1 (I think; but certainly in 5.2),
Stdlib.Random
's generators are automatically split when new domains are created. I think this is not happening inBase.Random
and results inCamlinternalLazy.Undefined
exceptions being raised when multiple domains generate random numbers in parallel. I don't know if fixing this is even possible given howBase.Random
is designed, but perhaps warning the user in the documentation would be helpful?The text was updated successfully, but these errors were encountered: