Skip to content
Open
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:
run: cargo doc --all-features --no-deps
- name: rand_core
run: cargo doc --all-features --package rand_core --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 @@ -139,8 +137,6 @@ jobs:
cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml --no-default-features --features=os_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 @@ -173,7 +169,6 @@ jobs:
cross test --no-fail-fast --target ${{ matrix.target }} --examples
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
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 @@ -192,7 +187,6 @@ jobs:
cargo miri test --manifest-path rand_core/Cargo.toml --features=serde
cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features
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 @@ -68,7 +68,6 @@ log = ["dep:log"]
[workspace]
members = [
"rand_core",
"rand_chacha",
"rand_pcg",
]
exclude = ["benches", "distr_test"]
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ distribution.

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
`chacha20`, 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 @@ -18,7 +18,7 @@ rand_core = { path = "../rand_core" }
[dev-dependencies]
rand = { path = "..", features = ["small_rng", "nightly"] }
rand_pcg = { path = "../rand_pcg" }
rand_chacha = { path = "../rand_chacha" }
chacha20 = { version = "=0.10.0-rc.2", 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
46 changes: 0 additions & 46 deletions rand_chacha/CHANGELOG.md

This file was deleted.

12 changes: 0 additions & 12 deletions rand_chacha/COPYRIGHT

This file was deleted.

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

This file was deleted.

176 changes: 0 additions & 176 deletions rand_chacha/LICENSE-APACHE

This file was deleted.

Loading
Loading