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
Feature request: Stdlib.Random.int62 #9487
Comments
Not sure why it needs a new function (especially as that would have to fail on 32-bit systems) - I've pushed a tentative extension of |
Why a new function: to not change the behavior of the existing one and hence satisfy upward compatibility. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Fixed by #9489 |
Dear maintainers,
From reading the documentation for Random.int, I understand it
could be named Random.int30.
But, nowadays we have 64 bits integers, so we might want
to have a Random.int62 that would give us a random
integer for the 64 bits era.
That is to say: Random.int is from the OCaml 32 bits era.
I pledge for the addition of Random.int62, which would be its counterpart
for the 64 bits era.
If people are interested, I will try to send a PR.
The interface would be:
Best regards,
F.
The text was updated successfully, but these errors were encountered: