Bump rand from 0.9.2 to 0.10.0
Type: Pull Request
State: Open
Association: Unknown
Comments: 2
(29 days ago)
(22 days ago)
dependencies rust
Bumps rand from 0.9.2 to 0.10.0.
Changelog
Sourced from rand's changelog.
[0.10.0] - 2026-02-08
Changes
- The dependency on
rand_chachahas been replaced with a dependency onchacha20. This changes the implementation behindStdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones inchacha20instead ofrand_chacha(#1642).- Rename fns
IndexedRandom::choose_multiple->sample,choose_multiple_array->sample_array,choose_multiple_weighted->sample_weighted, structSliceChooseIter->IndexedSamplesand fnsIteratorRandom::choose_multiple->sample,choose_multiple_fill->sample_fill(#1632)- Use Edition 2024 and MSRV 1.85 (#1653)
- Let
Fillbe implemented for element types, not sliceable types (#1652)- Fix
OsError::raw_os_erroron UEFI targets by returningOption<usize>(#1665)- Replace fn
TryRngCore::read_adapter(..) -> RngReadAdapterwith simpler structRngReader(#1669)- Remove fns
SeedableRng::from_os_rng,try_from_os_rng(#1674)- Remove
Clonesupport forStdRng,ReseedingRng(#1677)- Use
postcardinstead ofbincodeto test the serde feature (#1693)- Avoid excessive allocation in
IteratorRandom::samplewhenamountis much larger than iterator size (#1695)- Rename
os_rng->sys_rng,OsRng->SysRng,OsError->SysError(#1697)- Rename
Rng->RngExtas upstreamrand_corehas renamedRngCore->Rng(#1717)Additions
- Add fns
IndexedRandom::choose_iter,choose_weighted_iter(#1632)- Pub export
Xoshiro128PlusPlus,Xoshiro256PlusPlusprngs (#1649)- Pub export
ChaCha8Rng,ChaCha12Rng,ChaCha20Rngbehindchachafeature (#1659)- Fn
rand::make_rng() -> R where R: SeedableRng(#1734)Removals
- Removed
ReseedingRng(#1722)- Removed unused feature "nightly" (#1732)
- Removed feature
small_rng(#1732)#1632: rust-random/rand#1632 #1642: rust-random/rand#1642 #1649: rust-random/rand#1649 #1652: rust-random/rand#1652 #1653: rust-random/rand#1653 #1659: rust-random/rand#1659 #1665: rust-random/rand#1665 #1669: rust-random/rand#1669 #1674: rust-random/rand#1674 #1677: rust-random/rand#1677 #1693: rust-random/rand#1693 #1695: rust-random/rand#1695 #1697: rust-random/rand#1697 #1717: rust-random/rand#1717 #1722: rust-random/rand#1722 #1732: rust-random/rand#1732 #1734: rust-random/rand#1734
Commits
acc5f24Prepare v0.10.0 releases (#1729)95c5165Add fn rand::make_rng (#1734)146da58CHANGELOG: add PR links (#1738)8cacd6dREADME tweaks (#1737)28e3df8Update chacha20: use ChaChaCore directly; remove bytes_until_reseed field (#1...03db311Replace fn reseed_and_generate with try_to_reseedb14483eApply inline attr to fn generatefda8f74Remove bytes_until_reseed field213bb3bBump chacha20 to 0.10.0-rc.1172afe1eMinor tweaks; prepare v0.10.0-rc.9 (#1736)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 13891088 |
| UUID: | 3916821265 |
| Node ID: | PR_kwDOCA8Bec7CgV2X |
| Host: | GitHub |
| Repository: | RustPython/RustPython |