File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ) ]
3738pub struct StdRng ( Rng ) ;
You can’t perform that action at this time.
0 commit comments