-
Notifications
You must be signed in to change notification settings - Fork 59
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
provide RandomMod::try_random_mod
and Random::try_random
methods
#770
base: master
Are you sure you want to change the base?
Conversation
62d6cf1
to
8e6435b
Compare
I think this is fine as |
8e6435b
to
3a48484
Compare
3a48484
to
2480249
Compare
We need to decide whether we need explicit |
I think |
So I started this whole I have a use for it in another project where I need to pass an RNG through a dyn-safe trait API. Before it was available I just had a wrapper that boxed a |
f98d5a7
to
2480249
Compare
As discussed above, the |
2480249
to
c0e21cb
Compare
try_random_mod
methodRandomMod::try_random_mod
and Random::try_random
methods
c0e21cb
to
23329d2
Compare
23329d2
to
8b09ce8
Compare
When this is ready ? |
I think it's mostly ready, but we might want to wait for a release of rand_core. |
894b780
to
481464e
Compare
481464e
to
8c1c6c7
Compare
@baloo (I know that some consider it a sloppy approach, but in my opinion it's more convinient and less time consuming for a forge-centric development) |
This last push was fixing a merge conflict with #772 |
This method is to be used by downstream crates:
rand_core
from0.6.4
to0.9.1
RSA#478Depends on:
Sized
requirements for blanket impls rust-random/rand#1593