Skip to content

Commit

Permalink
Merge pull request #757 from dhardy/deprecations
Browse files Browse the repository at this point in the history
Remove deprecations
  • Loading branch information
dhardy committed Mar 23, 2019
2 parents d58c0ac + 7e9a8c6 commit f0d08b5
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 1,048 deletions.
10 changes: 0 additions & 10 deletions rand_isaac/src/isaac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ impl SeedableRng for IsaacRng {
}
}

impl IsaacRng {
/// Create an ISAAC random number generator using an `u64` as seed.
/// If `seed == 0` this will produce the same stream of random numbers as
/// the reference implementation when used unseeded.
#[deprecated(since="0.6.0", note="use SeedableRng::seed_from_u64 instead")]
pub fn new_from_u64(seed: u64) -> Self {
Self::seed_from_u64(seed)
}
}

/// The core of [`IsaacRng`], used with [`BlockRng`].
#[derive(Clone)]
#[cfg_attr(feature="serde1", derive(Serialize, Deserialize))]
Expand Down
18 changes: 0 additions & 18 deletions rand_isaac/src/isaac64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ impl SeedableRng for Isaac64Rng {
}
}

impl Isaac64Rng {
/// Create an ISAAC-64 random number generator using an `u64` as seed.
/// If `seed == 0` this will produce the same stream of random numbers as
/// the reference implementation when used unseeded.
#[deprecated(since="0.6.0", note="use SeedableRng::seed_from_u64 instead")]
pub fn new_from_u64(seed: u64) -> Self {
Self::seed_from_u64(seed)
}
}

/// The core of `Isaac64Rng`, used with `BlockRng`.
#[derive(Clone)]
#[cfg_attr(feature="serde1", derive(Serialize, Deserialize))]
Expand Down Expand Up @@ -271,14 +261,6 @@ impl Isaac64Core {

Self { mem, a: w(0), b: w(0), c: w(0) }
}

/// Create an ISAAC-64 random number generator using an `u64` as seed.
/// If `seed == 0` this will produce the same stream of random numbers as
/// the reference implementation when used unseeded.
#[deprecated(since="0.6.0", note="use SeedableRng::seed_from_u64 instead")]
pub fn new_from_u64(seed: u64) -> Self {
Self::seed_from_u64(seed)
}
}

impl SeedableRng for Isaac64Core {
Expand Down

0 comments on commit f0d08b5

Please sign in to comment.