Skip to content

Rename Rng => RngExt; bump rand_core to v0.10.0-rc-6#1717

Merged
dhardy merged 1 commit into
masterfrom
rand_core/v0.10.0-rc-6
Jan 26, 2026
Merged

Rename Rng => RngExt; bump rand_core to v0.10.0-rc-6#1717
dhardy merged 1 commit into
masterfrom
rand_core/v0.10.0-rc-6

Conversation

@tarcieri

@tarcieri tarcieri commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

This prerelease of rand_core renamed (Try)RngCore => (Try)Rng.

Since rand previously defined an Rng trait, it now needs a new name, and RngExt was the one I saw suggested in rust-random/rand_core#54.

Also bumps:

  • chacha20 v0.10.0-rc.9

  • getrandom v0.4.0-rc.1

  • Added a CHANGELOG.md entry

@tarcieri tarcieri requested review from dhardy and newpavlov January 24, 2026 18:56
@tarcieri tarcieri force-pushed the rand_core/v0.10.0-rc-6 branch 3 times, most recently from 5b1d58c to 79d9026 Compare January 24, 2026 19:01
Comment thread rand_pcg/src/pcg128.rs
Comment thread src/distr/integer.rs Outdated
Comment thread src/distr/integer.rs Outdated
@tarcieri tarcieri force-pushed the rand_core/v0.10.0-rc-6 branch from 6bd71c5 to b7eeedd Compare January 25, 2026 00:55
Comment thread src/distr/other.rs Outdated
@tarcieri tarcieri force-pushed the rand_core/v0.10.0-rc-6 branch 2 times, most recently from fec5cfa to 70dca8d Compare January 25, 2026 02:33
Comment thread src/distr/distribution.rs Outdated
Comment thread src/distr/slice.rs Outdated
Comment thread src/rng.rs Outdated
Comment thread src/rng.rs Outdated
@dhardy

dhardy commented Jan 25, 2026

Copy link
Copy Markdown
Member

Could you bump the rand and rand_pcg versions too?

@tarcieri

tarcieri commented Jan 25, 2026

Copy link
Copy Markdown
Contributor Author

Versions bumped in f6d2e96.

Do I need to squash? Edit: went ahead and squashed in 85161db

This prerelease of `rand_core` renamed `(Try)RngCore` => `(Try)Rng`.

Since `rand` previously defined an `Rng` trait, it now needs a new name,
and `RngExt` was the one I saw suggested in rust-random/rand_core#54.
@tarcieri tarcieri force-pushed the rand_core/v0.10.0-rc-6 branch from fd1b1d6 to 85161db Compare January 25, 2026 18:18
@dhardy

dhardy commented Jan 26, 2026

Copy link
Copy Markdown
Member

Do I need to squash?

Not necessarily; I'll use the "squash and merge" strategy if commits are messy.

@dhardy dhardy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@dhardy dhardy merged commit 15b8880 into master Jan 26, 2026
16 checks passed
@dhardy dhardy deleted the rand_core/v0.10.0-rc-6 branch January 26, 2026 08:14
cratelyn added a commit to olix0r/kubert that referenced this pull request Apr 17, 2026
this was renamed in rust-random/rand#1717.

this commit updates the lease examples to reflect this.

Signed-off-by: katelyn martin <kate@buoyant.io>
cratelyn added a commit to olix0r/kubert that referenced this pull request Apr 17, 2026
* chore(examples): update references to `sample_iter()`

this was renamed in rust-random/rand#1717.

this commit updates the lease examples to reflect this.

Signed-off-by: katelyn martin <kate@buoyant.io>
hiboma added a commit to hiboma/mde-cli that referenced this pull request Jun 9, 2026
rand 0.10 renamed the `Rng` trait to `RngExt` (rust-random/rand#1717).
Update the import in browser.rs so `rng.random()` resolves again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
hiboma added a commit to hiboma/mde-cli that referenced this pull request Jun 9, 2026
* chore(deps): bump rand from 0.9.4 to 0.10.0

Bumps [rand](https://github.com/rust-random/rand) from 0.9.4 to 0.10.0.
- [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.0)

---
updated-dependencies:
- dependency-name: rand
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(auth): migrate to rand 0.10 RngExt trait

rand 0.10 renamed the `Rng` trait to `RngExt` (rust-random/rand#1717).
Update the import in browser.rs so `rng.random()` resolves again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 伊藤 洋也 <hito@pepabo.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants