Skip to content

Commit

Permalink
docs: Fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Sep 25, 2018
1 parent fea3b52 commit 6895454
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions rand_chacha/src/chacha.rs
Expand Up @@ -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<ChaChaCore>);

Expand Down
4 changes: 2 additions & 2 deletions rand_hc128/src/hc128.rs
Expand Up @@ -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<Hc128Core>);

Expand Down
2 changes: 1 addition & 1 deletion rand_isaac/src/isaac.rs
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion rand_isaac/src/isaac64.rs
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/rngs/adapter/reseeding.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/rngs/mod.rs
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/rngs/std.rs
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/rngs/thread.rs
Expand Up @@ -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
Expand Down

0 comments on commit 6895454

Please sign in to comment.