Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
toolchain: nightly
- name: rand
run: cargo doc --all-features --no-deps
- name: rand_chacha
run: cargo doc --all-features --package rand_chacha --no-deps
- name: rand_pcg
run: cargo doc --all-features --package rand_pcg --no-deps

Expand Down Expand Up @@ -115,8 +113,6 @@ jobs:
cargo test --target ${{ matrix.target }} --features=serde,log,small_rng
- name: Test rand_pcg
run: cargo test --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde
- name: Test rand_chacha
run: cargo test --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml --features=serde

test-cross:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -148,7 +144,6 @@ jobs:
cross test --no-fail-fast --target ${{ matrix.target }} --features=serde,log,small_rng
cross test --no-fail-fast --target ${{ matrix.target }} --examples
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml

test-miri:
runs-on: ubuntu-latest
Expand All @@ -164,7 +159,6 @@ jobs:
cargo miri test --no-default-features --lib --tests
cargo miri test --features=log,small_rng
cargo miri test --manifest-path rand_pcg/Cargo.toml --features=serde
cargo miri test --manifest-path rand_chacha/Cargo.toml --no-default-features

test-no-std:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ log = ["dep:log"]

[workspace]
members = [
"rand_chacha",
"rand_pcg",
]
exclude = ["benches", "distr_test"]
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ distribution.
## Supported Versions

We aim to provide security fixes in the form of a new patch version for the
latest release version of `rand` and its dependencies `rand_core` and
`rand_chacha`, as well as for prior major and minor releases which were, at some
latest release version of `rand` and its dependencies such as `rand_core`,
as well as for prior major and minor releases which were, at some
time during the previous 12 months, the latest release version.

## Reporting a Vulnerability
Expand Down
2 changes: 1 addition & 1 deletion benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ simd_support = ["rand/simd_support"]
[dev-dependencies]
rand = { path = "..", features = ["small_rng", "nightly"] }
rand_pcg = { path = "../rand_pcg" }
rand_chacha = { path = "../rand_chacha" }
chacha20 = { version = "0.10.0-rc.5", default-features = false, features = ["rng"] }
criterion = "0.5"
criterion-cycles-per-byte = "0.6"

Expand Down
4 changes: 2 additions & 2 deletions benches/benches/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use chacha20::rand_core::UnwrapErr;
use chacha20::{ChaCha8Rng, ChaCha12Rng, ChaCha20Core, ChaCha20Rng};
use core::time::Duration;
use criterion::measurement::WallTime;
use criterion::{BenchmarkGroup, Criterion, black_box, criterion_group, criterion_main};
use rand::prelude::*;
use rand::rngs::OsRng;
use rand::rngs::ReseedingRng;
use rand_chacha::rand_core::UnwrapErr;
use rand_chacha::{ChaCha8Rng, ChaCha12Rng, ChaCha20Core, ChaCha20Rng};
use rand_pcg::{Pcg32, Pcg64, Pcg64Dxsm, Pcg64Mcg};

criterion_group!(
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/seq_choose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn bench(c: &mut Criterion) {
b.iter(|| x.iter().cloned().sample_fill(&mut rng, &mut buf))
});

bench_rng::<rand_chacha::ChaCha20Rng>(c, "ChaCha20");
bench_rng::<chacha20::ChaCha20Rng>(c, "ChaCha20");
bench_rng::<rand_pcg::Pcg32>(c, "Pcg32");
bench_rng::<rand_pcg::Pcg64>(c, "Pcg64");
}
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn bench(c: &mut Criterion) {
})
});

bench_rng::<rand_chacha::ChaCha12Rng>(c, "ChaCha12");
bench_rng::<chacha20::ChaCha12Rng>(c, "ChaCha12");
bench_rng::<rand_pcg::Pcg32>(c, "Pcg32");
bench_rng::<rand_pcg::Pcg64>(c, "Pcg64");
}
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/uniform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

#![cfg_attr(feature = "simd_support", feature(portable_simd))]

use chacha20::ChaCha8Rng;
use core::time::Duration;
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
use rand::distr::uniform::{SampleRange, Uniform};
use rand::prelude::*;
use rand_chacha::ChaCha8Rng;
use rand_pcg::{Pcg32, Pcg64};
#[cfg(feature = "simd_support")]
use std::simd::{Simd, num::SimdUint};
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/uniform_float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
//!
//! - sample: current method: (x12 - 1.0) * (b - a) + a

use chacha20::ChaCha8Rng;
use core::time::Duration;
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
use rand::distr::uniform::{SampleUniform, Uniform, UniformSampler};
use rand::prelude::*;
use rand_chacha::ChaCha8Rng;
use rand_pcg::{Pcg32, Pcg64};

const WARM_UP_TIME: Duration = Duration::from_millis(1000);
Expand Down
61 changes: 0 additions & 61 deletions rand_chacha/CHANGELOG.md

This file was deleted.

12 changes: 0 additions & 12 deletions rand_chacha/COPYRIGHT

This file was deleted.

35 changes: 0 additions & 35 deletions rand_chacha/Cargo.toml

This file was deleted.

Loading