fix(deps): update rust crate rand to 0.10 - autoclosed #344

Closed
kompas-deps wants to merge 1 commit from renovate/rand-0.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
rand (source) dependencies minor 0.9 → 0.10

Release Notes

rust-random/rand (rand)

v0.10.3

Compare Source

Fixes
  • Fix WeightedIndex panic when the sum of float weights is infinite; return Error::Overflow instead (#​1808)
  • Fix spurious Error::NonFinite from Uniform::new_inclusive on large finite float ranges such as 0.0..=f64::MAX (#​1821)
  • Fix possible panic due to sampling a deserialized Uniform<char> (#​1831)
Changes
  • Report exact remaining lengths from WeightedIndex::weights() and reduce overhead when reading weights (#​1838)

v0.10.2

Compare Source

Fixes
  • Fix possible memory safety violation due to deserialization of UniformChar from bad source (#​1790)
Changes
  • Document required output order of fn partial_shuffle and apply #[must_use] (#​1769)
  • Avoid usage of unsafe in contexts where non-local memory corruption could invalidate contract (#​1791)

v0.10.1

Compare Source

This release includes a fix for a soundness bug; see #​1763.

Changes
  • Document panic behavior of make_rng and add #[track_caller] (#​1761)
  • Deprecate feature log (#​1763)

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: (in timezone Europe/Amsterdam)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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 Mend Renovate CLI.

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.10` | --- ### Release Notes <details> <summary>rust-random/rand (rand)</summary> ### [`v0.10.3`](https://github.com/rust-random/rand/blob/HEAD/CHANGELOG.md#0103--2026-09-20) [Compare Source](https://github.com/rust-random/rand/compare/0.10.2...0.10.3) ##### Fixes - Fix `WeightedIndex` panic when the sum of float weights is infinite; return `Error::Overflow` instead ([#&#8203;1808]) - Fix spurious `Error::NonFinite` from `Uniform::new_inclusive` on large finite float ranges such as `0.0..=f64::MAX` ([#&#8203;1821]) - Fix possible panic due to sampling a deserialized `Uniform<char>` ([#&#8203;1831]) ##### Changes - Report exact remaining lengths from `WeightedIndex::weights()` and reduce overhead when reading weights ([#&#8203;1838]) [#&#8203;1808]: https://github.com/rust-random/rand/pull/1808 [#&#8203;1821]: https://github.com/rust-random/rand/pull/1821 [#&#8203;1831]: https://github.com/rust-random/rand/pull/1831 [#&#8203;1838]: https://github.com/rust-random/rand/pull/1838 ### [`v0.10.2`](https://github.com/rust-random/rand/blob/HEAD/CHANGELOG.md#0102--2026-07-02) [Compare Source](https://github.com/rust-random/rand/compare/0.10.1...0.10.2) ##### Fixes - Fix possible memory safety violation due to deserialization of `UniformChar` from bad source ([#&#8203;1790]) ##### Changes - Document required output order of fn `partial_shuffle` and apply `#[must_use]` ([#&#8203;1769]) - Avoid usage of `unsafe` in contexts where non-local memory corruption could invalidate contract ([#&#8203;1791]) [#&#8203;1769]: https://github.com/rust-random/rand/pull/1769 [#&#8203;1790]: https://github.com/rust-random/rand/pull/1790 [#&#8203;1791]: https://github.com/rust-random/rand/pull/1791 ### [`v0.10.1`](https://github.com/rust-random/rand/blob/HEAD/CHANGELOG.md#0101--2026-02-11) [Compare Source](https://github.com/rust-random/rand/compare/0.10.0...0.10.1) This release includes a fix for a soundness bug; see [#&#8203;1763]. ##### Changes - Document panic behavior of `make_rng` and add `#[track_caller]` ([#&#8203;1761]) - Deprecate feature `log` ([#&#8203;1763]) [#&#8203;1761]: https://github.com/rust-random/rand/pull/1761 [#&#8203;1763]: https://github.com/rust-random/rand/pull/1763 ### [`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.5...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**: (in timezone Europe/Amsterdam) - Branch creation - "before 6am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, 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 [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBzLW1ham9yIiwiaG9sZCJdfQ==-->
fix(deps): update rust crate rand to 0.10
Some checks failed
kreative-pr/review reviewed: 0 finding(s)
build / server (pull_request) Failing after 1m51s
build / web (pull_request) Successful in 6s
build / skills (pull_request) Successful in 17s
build / runner (pull_request) Successful in 47s
build / runner-windows (pull_request) Successful in 30s
fresh-install / fresh-install (pull_request) Failing after 3m29s
lint / megalinter (pull_request) Successful in 3m19s
kk / all-checks Failed: build / server (pull_request), fresh-install / fresh-install (pull_request)
build / web-live (pull_request) Successful in 5m41s
review-gate / gate review findings are all handled
review-gate / sweep (pull_request) Has been cancelled
ae671cbce7
Collaborator

On hold (hold): this PR does not merge by itself. Reply merge here and it merges as soon as the checks pass.

<!-- kk-automerge:hold --> On hold (hold): this PR does not merge by itself. Reply `merge` here and it merges as soon as the checks pass.
Owner

/review

/review
Collaborator

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🔒 No security concerns identified
⚡ No major issues detected
## PR Reviewer Guide 🔍 <!-- pr-agent:review:full --> Here are some key observations to aid the review process: <table> <tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr> <tr><td>⚡&nbsp;<strong>No major issues detected</strong></td></tr> </table>

🧹 Lint report · ✅ all 25 checks clean

Errors below fail this check.

✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint

MegaLinter on soucouyant · full logs in the Actions run · comment /improve for AI fix suggestions

<!-- kk-lint --> ## 🧹 Lint report · ✅ all 25 checks clean Errors below fail this check. ✅ Clean: black, checkstyle, djlint, editorconfig-checker, git_diff, gitleaks, grype, hadolint, htmlhint, isort, jsonlint, markdownlint, npm-groovy-lint, pmd, prettier, prettier, ruff, secretlint, shellcheck, shfmt, stylelint, trivy, trufflehog, xmllint, yamllint <sub>MegaLinter on soucouyant · full logs in the Actions run · comment <code>/improve</code> for AI fix suggestions</sub>
kompas-deps changed title from fix(deps): update rust crate rand to 0.10 to fix(deps): update rust crate rand to 0.10 - autoclosed 2026-11-09 14:01:23 +01:00
kompas-deps closed this pull request 2026-11-09 14:01:23 +01:00
Some checks failed
kreative-pr/review reviewed: 0 finding(s)
build / server (pull_request) Failing after 1m51s
Required
Details
build / web (pull_request) Successful in 6s
Required
Details
build / skills (pull_request) Successful in 17s
Required
Details
build / runner (pull_request) Successful in 47s
Required
Details
build / runner-windows (pull_request) Successful in 30s
Required
Details
fresh-install / fresh-install (pull_request) Failing after 3m29s
lint / megalinter (pull_request) Successful in 3m19s
Required
Details
kk / all-checks Failed: build / server (pull_request), fresh-install / fresh-install (pull_request)
Required
build / web-live (pull_request) Successful in 5m41s
Required
Details
review-gate / gate review findings are all handled
Required
review-gate / sweep (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
khyretos/kreative-kompanion!344
No description provided.