Skip to content

Commit

Permalink
Remove rand_hc (#1156)
Browse files Browse the repository at this point in the history
* Remove `rand_hc`

We no longer need it for `rand`, so it can be moved to the `rngs`
repository.
  • Loading branch information
vks committed Aug 5, 2021
1 parent b39e35f commit 067238f
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 880 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -99,8 +99,6 @@ jobs:
run: cargo test --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde1
- name: Test rand_chacha
run: cargo test --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml
- name: Test rand_hc
run: cargo test --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml

test-cross:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -137,7 +135,6 @@ jobs:
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde1
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde1
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml
test-miri:
runs-on: ubuntu-latest
Expand All @@ -158,7 +155,6 @@ jobs:
#cargo miri test --manifest-path rand_distr/Cargo.toml # no unsafe and lots of slow tests
cargo miri test --manifest-path rand_pcg/Cargo.toml --features=serde1
cargo miri test --manifest-path rand_chacha/Cargo.toml --no-default-features
cargo miri test --manifest-path rand_hc/Cargo.toml
test-no-std:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions Cargo.toml
Expand Up @@ -50,7 +50,6 @@ members = [
"rand_core",
"rand_distr",
"rand_chacha",
"rand_hc",
"rand_pcg",
]

Expand All @@ -73,8 +72,6 @@ libc = { version = "0.2.22", optional = true, default-features = false }

[dev-dependencies]
rand_pcg = { path = "rand_pcg", version = "0.3.0" }
# Only for benches:
rand_hc = { path = "rand_hc", version = "0.3.0" }
# Only to test serde1
bincode = "1.2.1"

Expand Down
1 change: 0 additions & 1 deletion SECURITY.md
Expand Up @@ -49,7 +49,6 @@ exceptions for theoretical issues without a known exploit:
| `rand` | 0.4 | Jitter, ISAAC |
| `rand_core` | 0.2 - 0.6 | |
| `rand_chacha` | 0.1 - 0.3 | |
| `rand_hc` | 0.1 - 0.3 | |

Explanation of exceptions:

Expand Down
5 changes: 0 additions & 5 deletions benches/generators.rs
Expand Up @@ -21,7 +21,6 @@ use rand::prelude::*;
use rand::rngs::adapter::ReseedingRng;
use rand::rngs::{mock::StepRng, OsRng};
use rand_chacha::{ChaCha12Rng, ChaCha20Core, ChaCha20Rng, ChaCha8Rng};
use rand_hc::Hc128Rng;
use rand_pcg::{Pcg32, Pcg64, Pcg64Mcg};

macro_rules! gen_bytes {
Expand All @@ -48,7 +47,6 @@ gen_bytes!(gen_bytes_pcg64mcg, Pcg64Mcg::from_entropy());
gen_bytes!(gen_bytes_chacha8, ChaCha8Rng::from_entropy());
gen_bytes!(gen_bytes_chacha12, ChaCha12Rng::from_entropy());
gen_bytes!(gen_bytes_chacha20, ChaCha20Rng::from_entropy());
gen_bytes!(gen_bytes_hc128, Hc128Rng::from_entropy());
gen_bytes!(gen_bytes_std, StdRng::from_entropy());
#[cfg(feature = "small_rng")]
gen_bytes!(gen_bytes_small, SmallRng::from_entropy());
Expand Down Expand Up @@ -78,7 +76,6 @@ gen_uint!(gen_u32_pcg64mcg, u32, Pcg64Mcg::from_entropy());
gen_uint!(gen_u32_chacha8, u32, ChaCha8Rng::from_entropy());
gen_uint!(gen_u32_chacha12, u32, ChaCha12Rng::from_entropy());
gen_uint!(gen_u32_chacha20, u32, ChaCha20Rng::from_entropy());
gen_uint!(gen_u32_hc128, u32, Hc128Rng::from_entropy());
gen_uint!(gen_u32_std, u32, StdRng::from_entropy());
#[cfg(feature = "small_rng")]
gen_uint!(gen_u32_small, u32, SmallRng::from_entropy());
Expand All @@ -91,7 +88,6 @@ gen_uint!(gen_u64_pcg64mcg, u64, Pcg64Mcg::from_entropy());
gen_uint!(gen_u64_chacha8, u64, ChaCha8Rng::from_entropy());
gen_uint!(gen_u64_chacha12, u64, ChaCha12Rng::from_entropy());
gen_uint!(gen_u64_chacha20, u64, ChaCha20Rng::from_entropy());
gen_uint!(gen_u64_hc128, u64, Hc128Rng::from_entropy());
gen_uint!(gen_u64_std, u64, StdRng::from_entropy());
#[cfg(feature = "small_rng")]
gen_uint!(gen_u64_small, u64, SmallRng::from_entropy());
Expand All @@ -113,7 +109,6 @@ macro_rules! init_gen {
init_gen!(init_pcg32, Pcg32);
init_gen!(init_pcg64, Pcg64);
init_gen!(init_pcg64mcg, Pcg64Mcg);
init_gen!(init_hc128, Hc128Rng);
init_gen!(init_chacha, ChaCha20Rng);

const RESEEDING_BYTES_LEN: usize = 1024 * 1024;
Expand Down
25 changes: 0 additions & 25 deletions rand_hc/CHANGELOG.md

This file was deleted.

12 changes: 0 additions & 12 deletions rand_hc/COPYRIGHT

This file was deleted.

18 changes: 0 additions & 18 deletions rand_hc/Cargo.toml

This file was deleted.

201 changes: 0 additions & 201 deletions rand_hc/LICENSE-APACHE

This file was deleted.

25 changes: 0 additions & 25 deletions rand_hc/LICENSE-MIT

This file was deleted.

0 comments on commit 067238f

Please sign in to comment.