Skip to content

Commit 6895454

Browse files
committed
docs: Fix links
1 parent fea3b52 commit 6895454

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

rand_chacha/src/chacha.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const STATE_WORDS: usize = 16;
6464
///
6565
/// [`set_word_pos`]: #method.set_word_pos
6666
/// [`set_stream`]: #method.set_stream
67-
/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html
68-
/// [`RngCore`]: ../../trait.RngCore.html
67+
/// [`BlockRng`]: ../rand_core/block/struct.BlockRng.html
68+
/// [`RngCore`]: ../rand_core/trait.RngCore.html
6969
#[derive(Clone, Debug)]
7070
pub struct ChaChaRng(BlockRng<ChaChaCore>);
7171

rand_hc128/src/hc128.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv
6464
/// [^5]: Internet Engineering Task Force (February 2015),
6565
/// ["Prohibiting RC4 Cipher Suites"](https://tools.ietf.org/html/rfc7465).
6666
///
67-
/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html
68-
/// [`RngCore`]: ../../trait.RngCore.html
67+
/// [`BlockRng`]: ../rand_core/block/struct.BlockRng.html
68+
/// [`RngCore`]: ../rand_core/trait.RngCore.html
6969
#[derive(Clone, Debug)]
7070
pub struct Hc128Rng(BlockRng<Hc128Core>);
7171

rand_isaac/src/isaac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN;
8686
/// [^3]: Jean-Philippe Aumasson, [*On the pseudo-random generator ISAAC*](
8787
/// https://eprint.iacr.org/2006/438)
8888
///
89-
/// [`Hc128Rng`]: ../../rand/prng//hc128/struct.Hc128Rng.html
89+
/// [`Hc128Rng`]: ../../rand_hc128/struct.Hc128Rng.html
9090
/// [`BlockRng`]: ../../rand_core/block/struct.BlockRng.html
9191
/// [`RngCore`]: ../../rand_core/trait.RngCore.html
9292
#[derive(Clone, Debug)]

rand_isaac/src/isaac64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN;
7676
/// http://burtleburtle.net/bob/rand/isaac.html)
7777
///
7878
/// [`IsaacRng`]: ../isaac/struct.IsaacRng.html
79-
/// [`Hc128Rng`]: ../../rand/prng/hc128/struct.Hc128Rng.html
79+
/// [`Hc128Rng`]: ../../rand_hc128/struct.Hc128Rng.html
8080
/// [`BlockRng64`]: ../../rand_core/block/struct.BlockRng64.html
8181
/// [`RngCore`]: ../../rand_core/trait.RngCore.html
8282
#[derive(Clone, Debug)]

src/rngs/adapter/reseeding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ use rand_core::block::{BlockRngCore, BlockRng};
8080
/// ```
8181
///
8282
/// [`ChaChaCore`]: ../../../rand_chacha/struct.ChaChaCore.html
83-
/// [`Hc128Core`]: ../../prng/hc128/struct.Hc128Core.html
83+
/// [`Hc128Core`]: ../../../rand_hc128/struct.Hc128Core.html
8484
/// [`BlockRngCore`]: ../../../rand_core/block/trait.BlockRngCore.html
8585
/// [`ReseedingRng::new`]: struct.ReseedingRng.html#method.new
8686
/// [`reseed()`]: struct.ReseedingRng.html#method.reseed

src/rngs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
//! [`mock::StepRng`]: mock/struct.StepRng.html
162162
//! [`adapter::ReadRng`]: adapter/struct.ReadRng.html
163163
//! [`adapter::ReseedingRng`]: adapter/struct.ReseedingRng.html
164-
//! [`ChaChaRng`]: ../prng/chacha/struct.ChaChaRng.html
164+
//! [`ChaChaRng`]: ../../rand_chacha/struct.ChaChaRng.html
165165
166166
pub mod adapter;
167167

src/rngs/std.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use rand_hc128::Hc128Rng;
2323
/// produce different output depending on the architecture. If you require
2424
/// reproducible output, use a named RNG, for example [`ChaChaRng`].
2525
///
26-
/// [HC-128]: ../prng/hc128/struct.Hc128Rng.html
27-
/// [`ChaChaRng`]: ../prng/chacha/struct.ChaChaRng.html
26+
/// [HC-128]: ../../rand_hc128/struct.Hc128Rng.html
27+
/// [`ChaChaRng`]: ../../rand_chacha/struct.ChaChaRng.html
2828
#[derive(Clone, Debug)]
2929
pub struct StdRng(Hc128Rng);
3030

src/rngs/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const THREAD_RNG_RESEED_THRESHOLD: u64 = 32*1024*1024; // 32 MiB
6868
/// [`ReseedingRng`]: adapter/struct.ReseedingRng.html
6969
/// [`StdRng`]: struct.StdRng.html
7070
/// [`EntropyRng`]: struct.EntropyRng.html
71-
/// [HC-128]: ../prng/hc128/struct.Hc128Rng.html
71+
/// [HC-128]: ../../rand_hc128/struct.Hc128Rng.html
7272
#[derive(Clone, Debug)]
7373
pub struct ThreadRng {
7474
// use of raw pointer implies type is neither Send nor Sync

0 commit comments

Comments
 (0)