Skip to content

Commit d9a960f

Browse files
authored
Merge pull request #636 from dhardy/move-hc
Rename rand_hc128 crate to rand_hc
2 parents 76aab69 + 06dd14d commit d9a960f

File tree

21 files changed

+38
-38
lines changed

21 files changed

+38
-38
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ matrix:
7272
# TODO: cannot test rand_pcg due to explicit dependency on i128
7373
- cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
7474
- cargo test --manifest-path rand_chacha/Cargo.toml
75-
- cargo test --manifest-path rand_hc128/Cargo.toml
75+
- cargo test --manifest-path rand_hc/Cargo.toml
7676

7777
- rust: stable
7878
env: DESCRIPTION="stable Rust release, macOS, iOS (cross-compile only)"
@@ -91,7 +91,7 @@ matrix:
9191
- cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
9292
- cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
9393
- cargo test --manifest-path rand_chacha/Cargo.toml
94-
- cargo test --manifest-path rand_hc128/Cargo.toml
94+
- cargo test --manifest-path rand_hc/Cargo.toml
9595
- cargo build --target=aarch64-apple-ios
9696

9797
- rust: beta
@@ -116,7 +116,7 @@ matrix:
116116
- cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
117117
- cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
118118
- cargo test --manifest-path rand_chacha/Cargo.toml
119-
- cargo test --manifest-path rand_hc128/Cargo.toml
119+
- cargo test --manifest-path rand_hc/Cargo.toml
120120
# remove cached documentation, otherwise files from previous PRs can get included
121121
- rm -rf target/doc
122122
- cargo doc --no-deps --all --all-features
@@ -199,7 +199,7 @@ script:
199199
- cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
200200
- cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
201201
- cargo test --manifest-path rand_chacha/Cargo.toml
202-
- cargo test --manifest-path rand_hc128/Cargo.toml
202+
- cargo test --manifest-path rand_hc/Cargo.toml
203203

204204
after_script: set +e
205205

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ simd_support = ["packed_simd"] # enables SIMD support
2929
serde1 = ["rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"] # enables serialization for PRNGs
3030

3131
[workspace]
32-
members = ["rand_core", "rand_isaac", "rand_chacha", "rand_hc128", "rand_pcg", "rand_xorshift"]
32+
members = ["rand_core", "rand_isaac", "rand_chacha", "rand_hc", "rand_pcg", "rand_xorshift"]
3333

3434
[dependencies]
3535
rand_core = { path = "rand_core", version = "0.3", default-features = false }
3636
rand_pcg = { path = "rand_pcg", version = "0.1" }
3737
# only for deprecations and benches:
3838
rand_isaac = { path = "rand_isaac", version = "0.1" }
3939
rand_chacha = { path = "rand_chacha", version = "0.1" }
40-
rand_hc128 = { path = "rand_hc128", version = "0.1" }
40+
rand_hc = { path = "rand_hc", version = "0.1" }
4141
rand_xorshift = { path = "rand_xorshift", version = "0.1" }
4242
log = { version = "0.4", optional = true }
4343

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ test_script:
4242
- cargo test --package rand_isaac --features=serde1
4343
- cargo test --package rand_xorshift --features=serde1
4444
- cargo test --package rand_chacha
45-
- cargo test --package rand_hc128
45+
- cargo test --package rand_hc
4646
- cargo test --manifest-path rand_core/Cargo.toml
4747
- cargo test --manifest-path rand_core/Cargo.toml --no-default-features --features=alloc
4848
- cargo test --manifest-path rand_isaac/Cargo.toml --features=serde1
4949
- cargo test --manifest-path rand_pcg/Cargo.toml --features=serde1
5050
- cargo test --manifest-path rand_xorshift/Cargo.toml --features=serde1
5151
- cargo test --manifest-path rand_chacha/Cargo.toml
52-
- cargo test --manifest-path rand_hc128/Cargo.toml
52+
- cargo test --manifest-path rand_hc/Cargo.toml

benches/generators.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern crate test;
1212
extern crate rand;
1313
extern crate rand_isaac;
1414
extern crate rand_chacha;
15-
extern crate rand_hc128;
15+
extern crate rand_hc;
1616
extern crate rand_pcg;
1717
extern crate rand_xorshift;
1818

@@ -27,7 +27,7 @@ use rand::rngs::adapter::ReseedingRng;
2727
use rand::rngs::{OsRng, JitterRng, EntropyRng};
2828
use rand_isaac::{IsaacRng, Isaac64Rng};
2929
use rand_chacha::ChaChaRng;
30-
use rand_hc128::{Hc128Rng, Hc128Core};
30+
use rand_hc::{Hc128Rng, Hc128Core};
3131
use rand_pcg::{Lcg64Xsh32, Mcg128Xsl64};
3232
use rand_xorshift::XorShiftRng;
3333

File renamed without changes.
File renamed without changes.

rand_hc128/Cargo.toml renamed to rand_hc/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "rand_hc128"
2+
name = "rand_hc"
33
version = "0.1.0" # NB: When modifying, also modify html_root_url in lib.rs
44
authors = ["The Rand Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://docs.rs/rand_hc128"
9-
homepage = "https://crates.io/crates/rand_hc128"
8+
documentation = "https://docs.rs/rand_hc"
9+
homepage = "https://crates.io/crates/rand_hc"
1010
description = """
1111
HC128 random number generator
1212
"""
File renamed without changes.
File renamed without changes.

rand_hc128/README.md renamed to rand_hc/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# rand_hc128
1+
# rand_hc
22

33
[![Build Status](https://travis-ci.org/rust-random/rand.svg)](https://travis-ci.org/rust-random/rand)
44
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/rust-random/rand)
5-
[![Latest version](https://img.shields.io/crates/v/rand_hc128.svg)](https://crates.io/crates/rand_hc128)
6-
[![Documentation](https://docs.rs/rand_hc128/badge.svg)](https://docs.rs/rand_hc128)
5+
[![Latest version](https://img.shields.io/crates/v/rand_hc.svg)](https://crates.io/crates/rand_hc)
6+
[![Documentation](https://docs.rs/rand_hc/badge.svg)](https://docs.rs/rand_hc)
77
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8-
[![License](https://img.shields.io/crates/l/rand_hc128.svg)](https://github.com/rust-random/rand/tree/master/rand_hc128#license)
8+
[![License](https://img.shields.io/crates/l/rand_hc.svg)](https://github.com/rust-random/rand/tree/master/rand_hc#license)
99

1010
A cryptographically secure random number generator that uses the HC-128
1111
algorithm.
@@ -15,8 +15,8 @@ RNG. It is selected as one of the "stream ciphers suitable for widespread
1515
adoption" by eSTREAM[^2].
1616

1717
Documentation:
18-
[master branch](https://rust-random.github.io/rand/rand_hc128/index.html),
19-
[by release](https://docs.rs/rand_hc128)
18+
[master branch](https://rust-random.github.io/rand/rand_hc/index.html),
19+
[by release](https://docs.rs/rand_hc)
2020

2121
[Changelog](CHANGELOG.md)
2222

@@ -31,13 +31,13 @@ Documentation:
3131

3232
## Crate Features
3333

34-
`rand_hc128` is `no_std` compatible. It does not require any functionality
34+
`rand_hc` is `no_std` compatible. It does not require any functionality
3535
outside of the `core` lib, thus there are no features to configure.
3636

3737

3838
# License
3939

40-
`rand_hc128` is distributed under the terms of both the MIT license and the
40+
`rand_hc` is distributed under the terms of both the MIT license and the
4141
Apache License (Version 2.0).
4242

4343
See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT), and

0 commit comments

Comments
 (0)