Skip to content

Commit cc93dae

Browse files
authored
Merge pull request rust-random#1079 from JJPennington/master
Modified the StdRng documentation
2 parents 34423a6 + 9aa8bc1 commit cc93dae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rngs/std.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ pub(crate) use rand_hc::Hc128Core as Core;
2222
/// on the current platform, to be statistically strong and unpredictable
2323
/// (meaning a cryptographically secure PRNG).
2424
///
25-
/// The current algorithm used is the ChaCha block cipher with 20 rounds.
26-
/// This may change as new evidence of cipher security and performance
27-
/// becomes available.
25+
/// The current algorithm used is the ChaCha block cipher with 12 rounds. Please
26+
/// see this relevant [rand issue] for the discussion. This may change as new
27+
/// evidence of cipher security and performance becomes available.
2828
///
2929
/// The algorithm is deterministic but should not be considered reproducible
3030
/// due to dependence on configuration and possible replacement in future
3131
/// library versions. For a secure reproducible generator, we recommend use of
3232
/// the [rand_chacha] crate directly.
3333
///
3434
/// [rand_chacha]: https://crates.io/crates/rand_chacha
35+
/// [rand issue]: https://github.com/rust-random/rand/issues/932
3536
#[cfg_attr(doc_cfg, doc(cfg(feature = "std_rng")))]
3637
#[derive(Clone, Debug, PartialEq, Eq)]
3738
pub struct StdRng(Rng);

0 commit comments

Comments
 (0)