Skip to content

deps: move to rand 0.10 - #18

Merged
BKPepe merged 1 commit into
masterfrom
deps/rand-0.10
Sep 27, 2026
Merged

BKPepe merged 1 commit into
masterfrom
deps/rand-0.10

Conversation

@BKPepe

@BKPepe BKPepe commented Sep 27, 2026

Copy link
Copy Markdown
Member

Supersedes #17, which bumped the crate without the API changes 0.9 and 0.10 need and failed to build everywhere.

rand::RngCore and thread_rng are gone, so the upload filler calls rand::fill and the multipart boundary calls RngExt::random_range. Both still draw from the thread RNG: gzip on an 8 MiB payload gives byte-identical compressed sizes before and after, and both expand it, as uniform bytes should.

The 0.9 and 0.10 renames removed `rand::RngCore` and `thread_rng`, so
the upload filler now calls `rand::fill` and the multipart boundary
calls `RngExt::random_range`. Both still draw from the thread RNG, so
the payload is the same uniform bytes as before.
Copilot AI lite review requested due to automatic review settings September 27, 2026 06:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BKPepe
BKPepe merged commit af2e2ec into master Sep 27, 2026
23 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.

2 participants