base icon indicating copy to clipboard operation
base copied to clipboard

Random number generators not split across domains, unlike in `Stdlib`

Open ghennequin opened this issue 1 year ago • 0 comments

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 in Base.Random and results in CamlinternalLazy.Undefined exceptions being raised when multiple domains generate random numbers in parallel. I don't know if fixing this is even possible given how Base.Random is designed, but perhaps warning the user in the documentation would be helpful?

ghennequin avatar Nov 13 '24 13:11 ghennequin