-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Implement Random
for num::{Saturating,Wrapping}
#136733
base: master
Are you sure you want to change the base?
Implement Random
for num::{Saturating,Wrapping}
#136733
Conversation
Implement `Random` for `num::{NonZero,Saturating,Wrapping}`.
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
r? @joboet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks correct, but this will need T-libs-api review as well.
r? libs-api
I think |
Random
for num::{NonZero,Saturating,Wrapping}
Random
for num::{Saturating,Wrapping}
What would not be uniformly random is if (for example) |
rust-lang/libs-team#393 (comment) states:
Tracking issue: #130703