Skip to content

Commit b22b637

Browse files
committed
Fix external links in SmallRng documentation
1 parent 6ce5f81 commit b22b637

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/rngs/small.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ type Rng = ::rand_pcg::Pcg32;
2424
/// future library versions may use a different internal generator with
2525
/// different output. Further, this generator may not be portable and can
2626
/// produce different output depending on the architecture. If you require
27-
/// reproducible output, use a named RNG. Refer to the documentation on the
28-
/// [`prng`][crate::prng] module.
27+
/// reproducible output, use a named RNG.
28+
/// Refer to [The Book](https://rust-random.github.io/book/guide-rngs.html).
29+
///
2930
///
3031
/// The current algorithm is [`Pcg64Mcg`][rand_pcg::Pcg64Mcg] on 64-bit platforms with Rust version
31-
/// 1.26 and later, or [`Pcg32`][rand_pcg::Pcg32] otherwise.
32+
/// 1.26 and later, or [`Pcg32`][rand_pcg::Pcg32] otherwise. Both are found in
33+
/// the [rand_pcg] crate.
3234
///
3335
/// # Examples
3436
///
@@ -67,6 +69,7 @@ type Rng = ::rand_pcg::Pcg32;
6769
/// [`FromEntropy`]: crate::FromEntropy
6870
/// [`StdRng`]: crate::rngs::StdRng
6971
/// [`thread_rng`]: crate::thread_rng
72+
/// [rand_pcg]: https://crates.io/crates/rand_pcg
7073
#[derive(Clone, Debug)]
7174
pub struct SmallRng(Rng);
7275

0 commit comments

Comments
 (0)