Skip to content

Commit 85161db

Browse files
committed
Rename Rng => RngExt; bump rand_core to v0.10.0-rc-6
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.
1 parent 7a81944 commit 85161db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+404
-171
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.
2121
- Use `postcard` instead of `bincode` to test the serde feature (#1693)
2222
- Avoid excessive allocation in `IteratorRandom::sample` when `amount` is much larger than iterator size ([#1695])
2323
- Rename `os_rng` -> `sys_rng`, `OsRng` -> `SysRng`, `OsError` -> `SysError` ([#1697])
24+
- Rename `Rng` -> `RngExt` as upstream `rand_core` has renamed `RngCore` -> `Rng` ([#1717])
2425

2526
### Additions
2627
- Add fns `IndexedRandom::choose_iter`, `choose_weighted_iter` (#1632)
@@ -29,6 +30,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.
2930

3031
[#1695]: https://github.com/rust-random/rand/pull/1695
3132
[#1697]: https://github.com/rust-random/rand/pull/1697
33+
[#1717]: https://github.com/rust-random/rand/pull/1717
3234

3335
## [0.9.2] - 2025-07-20
3436
### Deprecated

Cargo.lock

Lines changed: 232 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand"
3-
version = "0.10.0-rc.7"
3+
version = "0.10.0-rc.8"
44
authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -72,11 +72,11 @@ members = [
7272
exclude = ["benches", "distr_test"]
7373

7474
[dependencies]
75-
rand_core = { version = "0.10.0-rc-5", default-features = false }
75+
rand_core = { version = "0.10.0-rc-6", default-features = false }
7676
log = { version = "0.4.4", optional = true }
7777
serde = { version = "1.0.103", features = ["derive"], optional = true }
78-
chacha20 = { version = "0.10.0-rc.8", default-features = false, features = ["rng"], optional = true }
79-
getrandom = { version = "0.4.0-rc.0", optional = true }
78+
chacha20 = { version = "0.10.0-rc.9", default-features = false, features = ["rng"], optional = true }
79+
getrandom = { version = "0.4.0-rc.1", optional = true }
8080

8181
[dev-dependencies]
8282
rand_pcg = { path = "rand_pcg", version = "0.10.0-rc.1" }

0 commit comments

Comments
 (0)