Skip to content

Commit ba4c4c6

Browse files
authored
Prepare v0.9.4: fix doc build (#1766)
2 parents 1aeee9f + 4b8b686 commit ba4c4c6

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
88

99
You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.html) useful.
1010

11-
## [0.9.3] — 2026-02-11
11+
## [0.9.4] — 2026-04-13
12+
### Fixes
13+
- Fix doc build ([#1766])
14+
15+
[#1766]: https://github.com/rust-random/rand/pull/1766
16+
17+
## [0.9.3] — 2026-04-11
1218
This release back-ports a fix from v0.10. See also [#1763].
1319

1420
### Changes

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand"
3-
version = "0.9.3"
3+
version = "0.9.4"
44
authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -19,8 +19,8 @@ include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
1919

2020
[package.metadata.docs.rs]
2121
# To build locally:
22-
# RUSTDOCFLAGS="--cfg docsrs -Zunstable-options --generate-link-to-definition" cargo +nightly doc --all --all-features --no-deps --open
23-
all-features = true
22+
# RUSTDOCFLAGS="--cfg docsrs -Zunstable-options --generate-link-to-definition" cargo +nightly doc --all --features serde,unbiased --no-deps --open
23+
features = ["serde", "unbiased"]
2424
rustdoc-args = ["--generate-link-to-definition"]
2525

2626
[package.metadata.playground]

src/rngs/reseeding.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,11 @@ use rand_core::{CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore};
4141
///
4242
/// # Error handling
4343
///
44-
/// Although unlikely, reseeding the wrapped PRNG can fail. `ReseedingRng` will
45-
/// never panic but try to handle the error intelligently through some
46-
/// combination of retrying and delaying reseeding until later.
47-
/// If handling the source error fails `ReseedingRng` will continue generating
48-
/// data from the wrapped PRNG without reseeding.
44+
/// Errors during reseeding are extremely unlikely, assuming the same random
45+
/// source successfully initialized the inner PRNG. A reseeding failure will be
46+
/// reported via panic (new behaviour since v0.9.3).
4947
///
50-
/// Manually calling [`reseed()`] will not have this retry or delay logic, but
51-
/// reports the error.
48+
/// Manually calling [`reseed()`] will report errors.
5249
///
5350
/// # Example
5451
///

0 commit comments

Comments
 (0)