Skip to content

Commit b72b6ae

Browse files
committed
fix errors
1 parent 300b84b commit b72b6ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rand_isaac/src/isaac.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN;
3434
/// In spite of being designed with cryptographic security in mind, ISAAC hasn't
3535
/// been stringently cryptanalyzed and thus cryptographers do not not
3636
/// consensually trust it to be secure. When looking for a secure RNG, prefer
37-
/// `Hc128Rng` from [`rand_hc`] crate instead, which, like ISAAC, is an
38-
/// array-based RNG and one of the stream-ciphers selected the by eSTREAM
37+
/// `Hc128Rng` from the [`rand_hc`] crate instead, which, like ISAAC, is an
38+
/// array-based RNG and one of the stream-ciphers selected the by eSTREAM
3939
///
4040
/// In 2006 an improvement to ISAAC was suggested by Jean-Philippe Aumasson,
4141
/// named ISAAC+[^3]. But because the specification is not complete, because
@@ -117,7 +117,7 @@ impl SeedableRng for IsaacRng {
117117
fn from_seed(seed: Self::Seed) -> Self {
118118
IsaacRng(BlockRng::<IsaacCore>::from_seed(seed))
119119
}
120-
120+
121121
/// Create an ISAAC random number generator using an `u64` as seed.
122122
/// If `seed == 0` this will produce the same stream of random numbers as
123123
/// the reference implementation when used unseeded.
@@ -166,7 +166,7 @@ impl BlockRngCore for IsaacCore {
166166
/// of the algorithm in the `IsaacRng` documentation.
167167
///
168168
/// Optimisations used (similar to the reference implementation):
169-
///
169+
///
170170
/// - The loop is unrolled 4 times, once for every constant of mix().
171171
/// - The contents of the main loop are moved to a function `rngstep`, to
172172
/// reduce code duplication.
@@ -320,7 +320,7 @@ impl SeedableRng for IsaacCore {
320320
}
321321
Self::init(seed_extended, 2)
322322
}
323-
323+
324324
/// Create an ISAAC random number generator using an `u64` as seed.
325325
/// If `seed == 0` this will produce the same stream of random numbers as
326326
/// the reference implementation when used unseeded.

0 commit comments

Comments
 (0)