From 6895454bba8e8cb1f726914c04e71ac5b2f5741b Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Tue, 25 Sep 2018 14:13:31 +0200 Subject: [PATCH] docs: Fix links --- rand_chacha/src/chacha.rs | 4 ++-- rand_hc128/src/hc128.rs | 4 ++-- rand_isaac/src/isaac.rs | 2 +- rand_isaac/src/isaac64.rs | 2 +- src/rngs/adapter/reseeding.rs | 2 +- src/rngs/mod.rs | 2 +- src/rngs/std.rs | 4 ++-- src/rngs/thread.rs | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/rand_chacha/src/chacha.rs b/rand_chacha/src/chacha.rs index 66f8df35268..3e9040956c0 100644 --- a/rand_chacha/src/chacha.rs +++ b/rand_chacha/src/chacha.rs @@ -64,8 +64,8 @@ const STATE_WORDS: usize = 16; /// /// [`set_word_pos`]: #method.set_word_pos /// [`set_stream`]: #method.set_stream -/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html -/// [`RngCore`]: ../../trait.RngCore.html +/// [`BlockRng`]: ../rand_core/block/struct.BlockRng.html +/// [`RngCore`]: ../rand_core/trait.RngCore.html #[derive(Clone, Debug)] pub struct ChaChaRng(BlockRng); diff --git a/rand_hc128/src/hc128.rs b/rand_hc128/src/hc128.rs index a1e2a785add..d1dadcc9083 100644 --- a/rand_hc128/src/hc128.rs +++ b/rand_hc128/src/hc128.rs @@ -64,8 +64,8 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv /// [^5]: Internet Engineering Task Force (February 2015), /// ["Prohibiting RC4 Cipher Suites"](https://tools.ietf.org/html/rfc7465). /// -/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html -/// [`RngCore`]: ../../trait.RngCore.html +/// [`BlockRng`]: ../rand_core/block/struct.BlockRng.html +/// [`RngCore`]: ../rand_core/trait.RngCore.html #[derive(Clone, Debug)] pub struct Hc128Rng(BlockRng); diff --git a/rand_isaac/src/isaac.rs b/rand_isaac/src/isaac.rs index eee3d55285b..98bdd2bef57 100644 --- a/rand_isaac/src/isaac.rs +++ b/rand_isaac/src/isaac.rs @@ -86,7 +86,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN; /// [^3]: Jean-Philippe Aumasson, [*On the pseudo-random generator ISAAC*]( /// https://eprint.iacr.org/2006/438) /// -/// [`Hc128Rng`]: ../../rand/prng//hc128/struct.Hc128Rng.html +/// [`Hc128Rng`]: ../../rand_hc128/struct.Hc128Rng.html /// [`BlockRng`]: ../../rand_core/block/struct.BlockRng.html /// [`RngCore`]: ../../rand_core/trait.RngCore.html #[derive(Clone, Debug)] diff --git a/rand_isaac/src/isaac64.rs b/rand_isaac/src/isaac64.rs index 839fbbc4960..d5353008d23 100644 --- a/rand_isaac/src/isaac64.rs +++ b/rand_isaac/src/isaac64.rs @@ -76,7 +76,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN; /// http://burtleburtle.net/bob/rand/isaac.html) /// /// [`IsaacRng`]: ../isaac/struct.IsaacRng.html -/// [`Hc128Rng`]: ../../rand/prng/hc128/struct.Hc128Rng.html +/// [`Hc128Rng`]: ../../rand_hc128/struct.Hc128Rng.html /// [`BlockRng64`]: ../../rand_core/block/struct.BlockRng64.html /// [`RngCore`]: ../../rand_core/trait.RngCore.html #[derive(Clone, Debug)] diff --git a/src/rngs/adapter/reseeding.rs b/src/rngs/adapter/reseeding.rs index fbce3fc123c..03e5b2c903d 100644 --- a/src/rngs/adapter/reseeding.rs +++ b/src/rngs/adapter/reseeding.rs @@ -80,7 +80,7 @@ use rand_core::block::{BlockRngCore, BlockRng}; /// ``` /// /// [`ChaChaCore`]: ../../../rand_chacha/struct.ChaChaCore.html -/// [`Hc128Core`]: ../../prng/hc128/struct.Hc128Core.html +/// [`Hc128Core`]: ../../../rand_hc128/struct.Hc128Core.html /// [`BlockRngCore`]: ../../../rand_core/block/trait.BlockRngCore.html /// [`ReseedingRng::new`]: struct.ReseedingRng.html#method.new /// [`reseed()`]: struct.ReseedingRng.html#method.reseed diff --git a/src/rngs/mod.rs b/src/rngs/mod.rs index 3c8de06850d..6888517d98e 100644 --- a/src/rngs/mod.rs +++ b/src/rngs/mod.rs @@ -161,7 +161,7 @@ //! [`mock::StepRng`]: mock/struct.StepRng.html //! [`adapter::ReadRng`]: adapter/struct.ReadRng.html //! [`adapter::ReseedingRng`]: adapter/struct.ReseedingRng.html -//! [`ChaChaRng`]: ../prng/chacha/struct.ChaChaRng.html +//! [`ChaChaRng`]: ../../rand_chacha/struct.ChaChaRng.html pub mod adapter; diff --git a/src/rngs/std.rs b/src/rngs/std.rs index f13a4ff4c5c..ac52387107d 100644 --- a/src/rngs/std.rs +++ b/src/rngs/std.rs @@ -23,8 +23,8 @@ use rand_hc128::Hc128Rng; /// produce different output depending on the architecture. If you require /// reproducible output, use a named RNG, for example [`ChaChaRng`]. /// -/// [HC-128]: ../prng/hc128/struct.Hc128Rng.html -/// [`ChaChaRng`]: ../prng/chacha/struct.ChaChaRng.html +/// [HC-128]: ../../rand_hc128/struct.Hc128Rng.html +/// [`ChaChaRng`]: ../../rand_chacha/struct.ChaChaRng.html #[derive(Clone, Debug)] pub struct StdRng(Hc128Rng); diff --git a/src/rngs/thread.rs b/src/rngs/thread.rs index 3dd3ddda5f1..1b84489be4f 100644 --- a/src/rngs/thread.rs +++ b/src/rngs/thread.rs @@ -68,7 +68,7 @@ const THREAD_RNG_RESEED_THRESHOLD: u64 = 32*1024*1024; // 32 MiB /// [`ReseedingRng`]: adapter/struct.ReseedingRng.html /// [`StdRng`]: struct.StdRng.html /// [`EntropyRng`]: struct.EntropyRng.html -/// [HC-128]: ../prng/hc128/struct.Hc128Rng.html +/// [HC-128]: ../../rand_hc128/struct.Hc128Rng.html #[derive(Clone, Debug)] pub struct ThreadRng { // use of raw pointer implies type is neither Send nor Sync