-
Notifications
You must be signed in to change notification settings - Fork 46
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
update rand package to 0.8.3 #20
Conversation
This will avoid nasty version confusion similar to rust-random/rand#645 when using this in Frontier precompiles https://github.com/paritytech/frontier/tree/master/frame/evm/precompile/bn128 |
rustc-serialize = { version = "0.3", optional = true } | ||
byteorder = { version = "1.0", features = ["i128"], default-features = false } | ||
crunchy = "0.2.1" | ||
lazy_static = { version = "1.4.0", features = ["spin_no_std"] } | ||
rustc-hex = { version = "2", default-features = false } | ||
|
||
[dev-dependencies] | ||
rand = { version = "0.5", features = ["i128_support"] } | ||
rand = { version = "0.8.3", features = ["std_rng"] } |
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.
this dev-feature
will be leaked into features
but it was like that before so probably fine.
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.
LGTM
There is an alternative PR #18, I don't have a strong opinion on this, @NikVolf could you take a look? Also the latest published version of Other than that, no objection from me to merge this. |
I say it's an alternative, because it removes the |
For us its fine either this PR or #18, as both of them remove the dependency of rand 0.5.6 which is the source of our issues with the bn128 precompiles. Let us know whether you finally want this to be merged or #18. From what I see there are some minor cosmetic changes between the version that was published for substrate (which I assume is the |
Good pt about |
I'll publish it soon if there are no objections. UPD: published 0.6.0. |
Good for me! |
This PR updates the rand package to 0.8.3, which does not require the i128 support and grabs the StdRng from rand::rngs.