Skip to content

Commit c5c3a31

Browse files
committed
Make isaac and isaac64 modules public
(and relative links are really inconsistent)
1 parent 64afb68 commit c5c3a31

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/prng/isaac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN;
8585
/// [3]: Jean-Philippe Aumasson, [*On the pseudo-random generator ISAAC*](
8686
/// https://eprint.iacr.org/2006/438)
8787
///
88-
/// [`Hc128Rng`]: hc128/struct.Hc128Rng.html
88+
/// [`Hc128Rng`]: ../hc128/struct.Hc128Rng.html
8989
#[derive(Clone, Debug)]
9090
#[cfg_attr(feature="serde-1", derive(Serialize, Deserialize))]
9191
pub struct IsaacRng(BlockRng<IsaacCore>);
@@ -153,6 +153,7 @@ impl IsaacRng {
153153
}
154154
}
155155

156+
/// The core of `IsaacRng`, used with `BlockRng`.
156157
#[derive(Clone)]
157158
#[cfg_attr(feature="serde-1", derive(Serialize, Deserialize))]
158159
pub struct IsaacCore {

src/prng/isaac64.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN;
7575
/// http://burtleburtle.net/bob/rand/isaac.html)
7676
///
7777
/// [`IsaacRng`]: ../isaac/struct.IsaacRng.html
78-
/// [`Hc128Rng`]: hc128/struct.Hc128Rng.html
78+
/// [`Hc128Rng`]: ../hc128/struct.Hc128Rng.html
7979
#[derive(Clone, Debug)]
8080
#[cfg_attr(feature="serde-1", derive(Serialize, Deserialize))]
8181
pub struct Isaac64Rng(BlockRng64<Isaac64Core>);
@@ -143,6 +143,7 @@ impl Isaac64Rng {
143143
}
144144
}
145145

146+
/// The core of `Isaac64Rng`, used with `BlockRng`.
146147
#[derive(Clone)]
147148
#[cfg_attr(feature="serde-1", derive(Serialize, Deserialize))]
148149
pub struct Isaac64Core {

src/prng/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
4343
pub mod chacha;
4444
pub mod hc128;
45-
mod isaac;
46-
mod isaac64;
45+
pub mod isaac;
46+
pub mod isaac64;
4747
mod xorshift;
4848

4949
mod isaac_array;
5050

51-
#[doc(inline)] pub use self::chacha::ChaChaRng;
52-
#[doc(inline)] pub use self::hc128::Hc128Rng;
51+
pub use self::chacha::ChaChaRng;
52+
pub use self::hc128::Hc128Rng;
5353
pub use self::isaac::IsaacRng;
5454
pub use self::isaac64::Isaac64Rng;
5555
pub use self::xorshift::XorShiftRng;

0 commit comments

Comments
 (0)