fix(deps): bump rand from 0.8.5 to 0.10.1#129
Merged
Conversation
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
@cursor review |
kinyoklion
approved these changes
Apr 13, 2026
keelerm84
pushed a commit
that referenced
this pull request
Apr 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.17.2](0.17.1...0.17.2) (2026-04-13) ### Bug Fixes * **deps:** bump rand from 0.8.5 to 0.10.1 ([#129](#129)) ([49efcd4](49efcd4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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.
Summary
Bumps the
randdependency from 0.8.5 to 0.10.1 to address a customer-reported security concern with the older version.The only usage of
randis inretry.rsfor jitter calculation during backoff. The rand 0.10 API changes required updating:thread_rng()→rand::rng()gen_range()(viaRngtrait) →random_range()(viaRngExttrait)The range semantics (
current_delay / 2..=current_delay) are unchanged.Review & Testing Checklist for Human
rand::RngExttrait import andrand::rng().random_range(...)call are idiomatic for rand 0.10Notes
This is a major version bump (0.8 → 0.10), but the API surface used by this crate is minimal (single call site), so the migration is straightforward.
Link to Devin session: https://app.devin.ai/sessions/6f753c80cc4d4afabef3354af1b1eeb6
Requested by: @keelerm84
Note
Low Risk
Low risk: a dependency bump with a single call-site update for jitter generation; behavior should remain the same aside from potential RNG implementation differences.
Overview
Updates the
randdependency from0.8.5to0.10.1.Adjusts retry backoff jitter generation in
retry.rsto the new rand API by switching toRngExtand replacingthread_rng().gen_range(...)withrand::rng().random_range(...)while keeping the jitter range semantics unchanged.Reviewed by Cursor Bugbot for commit b6cb839. Bugbot is set up for automated code reviews on this repo. Configure here.