Skip to content

Commit 6ce5f81

Browse files
committed
Add links to the crate pages for the rngs mentioned in StdRng docs
Fixes #646
1 parent 8112daa commit 6ce5f81

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/rngs/std.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ use rand_hc::Hc128Rng;
1515
/// on the current platform, to be statistically strong and unpredictable
1616
/// (meaning a cryptographically secure PRNG).
1717
///
18-
/// The current algorithm used on all platforms is [HC-128].
18+
/// The current algorithm used on all platforms is [HC-128], found in the
19+
/// [rand_hc] crate.
1920
///
2021
/// Reproducibility of output from this generator is however not required, thus
2122
/// future library versions may use a different internal generator with
2223
/// different output. Further, this generator may not be portable and can
2324
/// produce different output depending on the architecture. If you require
24-
/// reproducible output, use a named RNG, for example [`ChaChaRng`].
25+
/// reproducible output, use a named RNG, for example [`ChaChaRng`] from the
26+
/// [rand_chacha] crate.
2527
///
2628
/// [HC-128]: rand_hc::Hc128Rng
2729
/// [`ChaChaRng`]: rand_chacha::ChaChaRng
30+
/// [rand_hc]: https://crates.io/crates/rand_hc
31+
/// [rand_chacha]: https://crates.io/crates/rand_chacha
2832
#[derive(Clone, Debug)]
2933
pub struct StdRng(Hc128Rng);
3034

0 commit comments

Comments
 (0)