Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random number generators not split across domains, unlike in Stdlib #170

Open
ghennequin opened this issue Nov 13, 2024 · 0 comments
Open
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.

Comments

@ghennequin
Copy link

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?

@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.
Projects
None yet
Development

No branches or pull requests

2 participants