chore(deps): bump rand from 0.9.4 to 0.10.2#175
Merged
Conversation
Bumps [rand](https://github.com/rust-random/rand) from 0.9.4 to 0.10.2. - [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.2) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
hyperpolymath
approved these changes
Jul 10, 2026
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
|
8 tasks
hyperpolymath
added a commit
that referenced
this pull request
Jul 10, 2026
… build (#181) ## Summary Two follow-ups that green `main` after #180 and #175. Neither is a real defect in application logic — one is a scanner false-positive, the other a bad dependency bump. ### 1. Secret-scanner false positives (from #180) The `bt-presence` crate vendored burble's conformance vectors (`ble-spa-v1.json`), which hold burble's **published non-production HMAC test keys** as hex strings — the file header literally says *"Fixed non-production secrets."* Gitleaks / SonarCloud / hypatia all pattern-match 64-char hex as `generic-api-key`, so this turned **SonarCloud** ("E Security Rating on New Code") and the **hypatia baseline** red and posted ~28 Gitleaks comments. **No real credential was ever committed.** Fixed **without suppressing any scanner**: dropped the vendored JSON and transcribed the 3 `presence` vectors this crate actually tests against as Rust **byte-array constants** in `tests/vectors.rs` (same burble commit `2b5914b`, provenance documented). Byte arrays are unambiguously wire test-data, not credentials, so **no `.gitleaksignore`, no SonarCloud exclusion, no hypatia baseline entry** is needed — your secret detection stays fully armed for real secrets. The byte-exact conformance proof is unchanged: `presence_beacon_id_is_byte_exact` still reproduces burble's independent oracle. Also dropped the now-unused `serde_json` dev-dep and refreshed `vendor/PROVENANCE.adoc` + `STATE.a2ml` (test count 174 → 173). ### 2. Build breakage (from #175) Dependabot re-bumped `rand` 0.9 → 0.10.2 (#175), which does **not compile** against `ndarray-rand 0.16` (Distribution/Rng trait mismatch) — exactly the break the workspace comment documents and #154 reverted before. `main` currently fails to build (`esn`: `E0277`/`E0599`). Reverted the workspace pin to `rand 0.9` (lock → 0.9.4); the full workspace builds again. ## RSR Quality Checklist - [x] Tests pass — full workspace `cargo build` green; `cargo test -p bt-presence` 11 unit + 2 conformance green - [x] Formatted (`cargo fmt --check`) — clean - [x] Linter clean (`cargo clippy --all-targets -- -D warnings`) — clean - [x] No banned language patterns - [x] No `unsafe` — `#[forbid(unsafe_code)]` - [x] SPDX headers present - [x] **No secrets** — the vendored hex-string test keys are removed; zero secret-shaped hex strings remain in the crate - [x] `STATE.a2ml` updated ## Testing ``` cargo build --workspace # Finished (esn compiles again) cargo test -p bt-presence # 11 unit + 2 conformance — pass cargo clippy -p bt-presence --all-targets -- -D warnings # clean cargo fmt --check # clean grep -rE '"[a-f0-9]{32,}"' crates/bt-presence # NONE ``` ## FLAGS / owner-manual - **Dependabot will keep re-bumping `rand` to 0.10** (this is the 2nd time). Recommend a `dependabot.yml` ignore for `rand` (and/or `rand_distr`) until `ndarray-rand` ships a 0.10-compatible release — otherwise the build re-breaks on the next bump. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh --- _Generated by [Claude Code](https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh)_ Co-authored-by: Claude <noreply@anthropic.com>
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.2.
Changelog
Sourced from rand's changelog.
... (truncated)
Commits
1540ea3Prepare rand 0.10.2 (#1800)a29964aBump chacha20 from 0.10.0 to 0.10.1 in the all-deps group (#1801)ced9491Tweak docs for RngExt::random_range and SampleRange (#1798)db14664Check UniformChar validity on deser (#1790)bea8620Bump the all-deps group with 2 updates (#1796)4f44932Bump actions/cache from 5 to 6 (#1795)b999a13Bump actions/checkout from 6 to 7 (#1794)aeab810Avoid unsafe where safety depends on non-local values (#1791)1896d7cAdd typos CI job (#1789)43eddeeBump the all-deps group with 2 updates (#1788)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)