-
Notifications
You must be signed in to change notification settings - Fork 216
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
Shall rand
be a dev-dependency in parking_lot_core, like in parking_lot?
#138
Comments
rand
be a dev-dependeny in parking_lot_core, like in parking_lot?rand
be a dev-dependency in parking_lot_core, like in parking_lot?
This is by design, some randomness is used as part of the fairness mechanism in parking_lot_core. |
Note that the future version of rand plans to prune dependencies a bit: rust-random/rand#715 |
Could we not swap the |
Another option, if we don't need super-high-quality randomness, is to just vendor xor-shift RNG, like the |
If we include a simple PRNG in |
Vendoring a simple PRNG sounds like a good idea that will solve multiple problems. |
I copied the linked PRNG from libstd and took a stab at implementing this. See #144. I have not evaluated the quality of that PRNG or anything. But this compiles and the tests pass. |
What about vendoring a simple PRNG into Rust's libcore? It doesn't look OK if everybody around starts vendoring a simple PRNG. |
No, crates that need a PRNG should just use the |
It might be worthwhile to do a release of |
I just published 0.8.1 without rand. |
Just connecting
parking_lot
brings entire chunk ofrand_*
entries intocargo tree
.The text was updated successfully, but these errors were encountered: