chore(deps): bump rand to 0.10 in /rust#73
Merged
Merged
Conversation
rand 0.10 renamed the user-level `Rng` trait to `RngExt` (the old `Rng` name now refers to the low-level trait, formerly `RngCore`). Switch the two import sites from `Rng` to `RngExt`; all call expressions (random, random_range, random_bool, seed_from_u64, shuffle) are unchanged. StdRng is now backed by the chacha20 crate; the seeded RNG sequences may differ, which is harmless here since fuzz_parity_test is a SIMD-vs-oracle property test, not a golden-value test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses one of the two bumps deferred in #72 (the other, z3 0.20, follows in a separate PR).
Change
rand0.9 → 0.10. The only breaking change touching this repo is the trait rename: the user-level convenience methods (random,random_range,random_bool, …) moved fromRngto a newRngExttrait. Switched the two import sites (findchars-bench/src/lib.rs,findchars/tests/fuzz_parity_test.rs) fromRngtoRngExt; every call expression is unchanged.StdRngis now backed by thechacha20crate — seeded sequences may differ, which is harmless:fuzz_parity_testis a SIMD-vs-oracle parity property test, not a golden-value test.Verification (local)
cargo build --workspace✓cargo clippy --workspace --all-targets -- -D warnings✓cargo test -p findchars -p findchars-csv✓ (compiles + runs the fuzz test viaRngExt)