Skip to content

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

@ghennequin

Description

@ghennequin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    forwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions