fix(deps): update rust crate rand to 0.10.0 #49

Merged
kjuulh merged 1 commits from renovate/all into main 2026-02-09 02:39:03 +01:00
Owner

This PR contains the following updates:

Package Type Update Change
rand (source) dependencies minor 0.9.0 -> 0.10.0

Release Notes

rust-random/rand (rand)

v0.10.0

Compare Source

Changes
  • The dependency on rand_chacha has been replaced with a dependency on chacha20. This changes the implementation behind StdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones in chacha20 instead of rand_chacha (#​1642).
  • Rename fns IndexedRandom::choose_multiple -> sample, choose_multiple_array -> sample_array, choose_multiple_weighted -> sample_weighted, struct SliceChooseIter -> IndexedSamples and fns IteratorRandom::choose_multiple -> sample, choose_multiple_fill -> sample_fill (#​1632)
  • Use Edition 2024 and MSRV 1.85 (#​1653)
  • Let Fill be implemented for element types, not sliceable types (#​1652)
  • Fix OsError::raw_os_error on UEFI targets by returning Option<usize> (#​1665)
  • Replace fn TryRngCore::read_adapter(..) -> RngReadAdapter with simpler struct RngReader (#​1669)
  • Remove fns SeedableRng::from_os_rng, try_from_os_rng (#​1674)
  • Remove Clone support for StdRng, ReseedingRng (#​1677)
  • Use postcard instead of bincode to test the serde feature (#​1693)
  • Avoid excessive allocation in IteratorRandom::sample when amount is much larger than iterator size (#​1695)
  • Rename os_rng -> sys_rng, OsRng -> SysRng, OsError -> SysError (#​1697)
  • Rename Rng -> RngExt as upstream rand_core has renamed RngCore -> Rng (#​1717)
Additions
  • Add fns IndexedRandom::choose_iter, choose_weighted_iter (#​1632)
  • Pub export Xoshiro128PlusPlus, Xoshiro256PlusPlus prngs (#​1649)
  • Pub export ChaCha8Rng, ChaCha12Rng, ChaCha20Rng behind chacha feature (#​1659)
  • Fn rand::make_rng() -> R where R: SeedableRng (#​1734)
Removals

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rand](https://rust-random.github.io/book) ([source](https://github.com/rust-random/rand)) | dependencies | minor | `0.9.0` -> `0.10.0` | --- ### Release Notes <details> <summary>rust-random/rand (rand)</summary> ### [`v0.10.0`](https://github.com/rust-random/rand/blob/HEAD/CHANGELOG.md#0100---2026-02-08) [Compare Source](https://github.com/rust-random/rand/compare/0.9.2...0.10.0) ##### Changes - The dependency on `rand_chacha` has been replaced with a dependency on `chacha20`. This changes the implementation behind `StdRng`, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones in `chacha20` instead of `rand_chacha` ([#&#8203;1642]). - Rename fns `IndexedRandom::choose_multiple` -> `sample`, `choose_multiple_array` -> `sample_array`, `choose_multiple_weighted` -> `sample_weighted`, struct `SliceChooseIter` -> `IndexedSamples` and fns `IteratorRandom::choose_multiple` -> `sample`, `choose_multiple_fill` -> `sample_fill` ([#&#8203;1632]) - Use Edition 2024 and MSRV 1.85 ([#&#8203;1653]) - Let `Fill` be implemented for element types, not sliceable types ([#&#8203;1652]) - Fix `OsError::raw_os_error` on UEFI targets by returning `Option<usize>` ([#&#8203;1665]) - Replace fn `TryRngCore::read_adapter(..) -> RngReadAdapter` with simpler struct `RngReader` ([#&#8203;1669]) - Remove fns `SeedableRng::from_os_rng`, `try_from_os_rng` ([#&#8203;1674]) - Remove `Clone` support for `StdRng`, `ReseedingRng` ([#&#8203;1677]) - Use `postcard` instead of `bincode` to test the serde feature ([#&#8203;1693]) - Avoid excessive allocation in `IteratorRandom::sample` when `amount` is much larger than iterator size ([#&#8203;1695]) - Rename `os_rng` -> `sys_rng`, `OsRng` -> `SysRng`, `OsError` -> `SysError` ([#&#8203;1697]) - Rename `Rng` -> `RngExt` as upstream `rand_core` has renamed `RngCore` -> `Rng` ([#&#8203;1717]) ##### Additions - Add fns `IndexedRandom::choose_iter`, `choose_weighted_iter` ([#&#8203;1632]) - Pub export `Xoshiro128PlusPlus`, `Xoshiro256PlusPlus` prngs ([#&#8203;1649]) - Pub export `ChaCha8Rng`, `ChaCha12Rng`, `ChaCha20Rng` behind `chacha` feature ([#&#8203;1659]) - Fn `rand::make_rng() -> R where R: SeedableRng` ([#&#8203;1734]) ##### Removals - Removed `ReseedingRng` ([#&#8203;1722]) - Removed unused feature "nightly" ([#&#8203;1732]) - Removed feature `small_rng` ([#&#8203;1732]) [#&#8203;1632]: https://github.com/rust-random/rand/pull/1632 [#&#8203;1642]: https://github.com/rust-random/rand/pull/1642 [#&#8203;1649]: https://github.com/rust-random/rand/pull/1649 [#&#8203;1652]: https://github.com/rust-random/rand/pull/1652 [#&#8203;1653]: https://github.com/rust-random/rand/pull/1653 [#&#8203;1659]: https://github.com/rust-random/rand/pull/1659 [#&#8203;1665]: https://github.com/rust-random/rand/pull/1665 [#&#8203;1669]: https://github.com/rust-random/rand/pull/1669 [#&#8203;1674]: https://github.com/rust-random/rand/pull/1674 [#&#8203;1677]: https://github.com/rust-random/rand/pull/1677 [#&#8203;1693]: https://github.com/rust-random/rand/pull/1693 [#&#8203;1695]: https://github.com/rust-random/rand/pull/1695 [#&#8203;1697]: https://github.com/rust-random/rand/pull/1697 [#&#8203;1717]: https://github.com/rust-random/rand/pull/1717 [#&#8203;1722]: https://github.com/rust-random/rand/pull/1722 [#&#8203;1732]: https://github.com/rust-random/rand/pull/1732 [#&#8203;1734]: https://github.com/rust-random/rand/pull/1734 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
kjuulh added 1 commit 2026-02-09 02:39:01 +01:00
fix(deps): update rust crate rand to 0.10.0
Some checks failed
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build encountered an error
9e847908ab
kjuulh scheduled this pull request to auto merge when all checks succeed 2026-02-09 02:39:02 +01:00
kjuulh merged commit b0f8295a81 into main 2026-02-09 02:39:03 +01:00
kjuulh deleted branch renovate/all 2026-02-09 02:39:04 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kjuulh/mad#49