Skip to content

Bump rand to 0.8.6 (RUSTSEC advisory)#4

Merged
coderdan merged 2 commits intomainfrom
update-rand
May 1, 2026
Merged

Bump rand to 0.8.6 (RUSTSEC advisory)#4
coderdan merged 2 commits intomainfrom
update-rand

Conversation

@coderdan
Copy link
Copy Markdown
Collaborator

@coderdan coderdan commented May 1, 2026

Summary

Closes the dependabot alert on `main` (advisory #3) by bumping `rand` from 0.8.5 → 0.8.6.

Scope

`rand` is a transitive dependency through `quickcheck`, which is a `dev-dependency` only. Production builds of `base85-simd` do not link `rand`, so the vulnerability never reaches end users — but updating the lock file gets the alert off the default branch and keeps test/dev builds patched.

Change

One-line bump applied via:

```sh
cargo update -p rand --precise 0.8.6
```

The diff is two lines in `Cargo.lock` (version + checksum). No source changes are needed.

Test plan

  • `cargo test --locked` — 47 tests + 1 doctest pass
  • `cargo clippy --all-targets --locked -- -D warnings` — clean
  • All five CI jobs green

coderdan added 2 commits May 1, 2026 22:22
`rand` is a transitive dependency through `quickcheck` (a dev-dep
only), so production builds of `base85-simd` are not affected. The
update closes the dependabot alert flagged on the default branch.

No source changes are needed. `cargo update -p rand --precise 0.8.6`
touches only the lock file (one version + one checksum line).

Tested:
  - cargo test --locked  (47 tests + 1 doctest all pass)
  - cargo clippy --all-targets --locked -- -D warnings  (clean)
Clippy 1.95 added `manual_checked_ops`, which flags this pattern:

    .step_by(if n == 0 { 1 } else { 256 / n + 1 })

The `n == 0` branch is dead — the loop iterates `1..=3usize`, so
`n` is never zero. Removing it satisfies the new lint and slightly
simplifies the test. No behaviour change.
@coderdan coderdan merged commit e6188eb into main May 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant