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 |
|
|
||
| [dev-dependencies] | ||
| rand = { version = "0.5", features = ["i128_support"] } | ||
| rand = { version = "0.8.3", features = ["std_rng"] } |
There was a problem hiding this comment.
this dev-feature will be leaked into features but it was like that before so probably fine.
|
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.