Repository navigation
chore(deps): bump rand from 0.9.4 to 0.10.1 - #263
Merged
Merged
Conversation
dependabot
Bot
force-pushed
the
dependabot/cargo/rand-0.10.1
branch
from
April 22, 2026 14:25
a9a54e5 to
20fb412
Compare
Bumps [rand](https://github.com/rust-random/rand) from 0.9.4 to 0.10.1. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](rust-random/rand@0.9.4...0.10.1) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
Bot
force-pushed
the
dependabot/cargo/rand-0.10.1
branch
from
April 22, 2026 14:33
20fb412 to
147e20b
Compare
iroh 0.97 still pins `rand_core 0.9.5`, so rand 0.10's `ThreadRng` does not satisfy iroh's `CryptoRng` bound on `SecretKey::generate` (the two versions of the `rand_core::CryptoRng` trait are incompatible). Bypass the trait-version mismatch by drawing 32 random bytes from `rand::rng().fill_bytes(..)` and feeding them to `SecretKey::from_bytes`, which carries no rand dependency. Introduces a small `fresh_secret_key` / `fresh_key` helper in `node::identity`, `node::tests::probe_loopback`, and `gossip::validation::tests` to keep the call-site noise local to each module. Once iroh bumps rand to 0.10 we can revert to `SecretKey::generate(&mut rand::rng())` — the helpers are a small, localised compat shim, not a new abstraction. Also swaps the `use rand::RngCore` imports for `use rand::Rng` since rand 0.10 renamed the core trait (`RngCore` -> `Rng` at the rand_core layer) and left `RngCore` as a deprecated blanket alias. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu
added a commit
that referenced
this pull request
Apr 22, 2026
Resolves Cargo.lock conflicts from main's dependency churn (rand 0.9 → 0.10 in #263, webpki-root-certs 1.0.6 unification). Took main's lockfile and let `cargo build` reconcile the new admin-only deps (jsonrpsee, serde_json) so versions stay pinned consistently with what the rest of the workspace now uses. Cargo.toml auto-merged: kept this branch's `serde_json` and `jsonrpsee` additions, picked up main's `rand = "0.10"` bump. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Bumps rand from 0.9.4 to 0.10.1.
Changelog
Sourced from rand's changelog.
... (truncated)
Commits
27ff4cbPrepare v0.10.1: deprecate featurelog(#1763)98d0638make_rng: document panic and add #[track_caller] (#1761)54e5eaaFix doc error (#1758)1ce4c08Bump itoa from 1.0.17 to 1.0.18 in the all-deps group (#1756)ccb734bdocs: fix typo in doc comment (#1754)357eb7dBump libc from 0.2.182 to 0.2.183 in the all-deps group (#1753)5e77fe5Fix trait references in documentation (#1752)da89185Bump the all-deps group with 3 updates (#1751)50516ffBump the all-deps group with 2 updates (#1749)fd71de9Bump the all-deps group with 2 updates (#1747)