From cfe4007c82855cad76fb7b312ee1fd8ee75218c5 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Tue, 15 May 2018 15:52:55 +0200 Subject: [PATCH 1/2] Update rand_core doc url version --- rand_core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_core/src/lib.rs b/rand_core/src/lib.rs index 5624d613980..352355059bb 100644 --- a/rand_core/src/lib.rs +++ b/rand_core/src/lib.rs @@ -35,7 +35,7 @@ #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/rand_core/0.1.0")] + html_root_url = "https://docs.rs/rand_core/0.2")] #![deny(missing_docs)] #![deny(missing_debug_implementations)] From 55bc5cd8b73fa0a1a1211b0b1600bc961284f379 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Tue, 15 May 2018 15:52:32 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 19 ++++++++++++------- rand_core/CHANGELOG.md | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f8d06f8b41..ad837494c4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ You may also find the [Update Guide](UPDATING.md) useful. - Minimum Rust version update: 1.22.0. (#239) - Create a separate `rand_core` crate. (#288) - Deprecate `rand_derive`. (#256) +- Add `prelude` (and module reorganisation). (#435) - Add `log` feature. Logging is now available in `JitterRng`, `OsRng`, `EntropyRng` and `ReseedingRng`. (#246) - Add `serde1` feature for some PRNGs. (#189) - `stdweb` feature for `OsRng` support on WASM via stdweb. (#272, #336) @@ -47,7 +48,6 @@ You may also find the [Update Guide](UPDATING.md) useful. - Add `SmallRng` wrapper. (#296) - Rewrite `ReseedingRng` to only work with `BlockRngCore` (substantial performance improvement). (#281) - Deprecate `weak_rng`. Use `SmallRng` instead. (#296) -- Deprecate `random`. (#296) - Deprecate `AsciiGenerator`. (#279) ### Random number generators @@ -56,13 +56,14 @@ You may also find the [Update Guide](UPDATING.md) useful. - Change `thread_rng` reseeding threshold to 32 MiB. (#277) - PRNGs no longer implement `Copy`. (#209) - `Debug` implementations no longer show internals. (#209) +- Implement `Clone` for `ReseedingRng`, `JitterRng`, OsRng`. (#383, #384) - Implement serialization for `XorShiftRng`, `IsaacRng` and `Isaac64Rng` under the `serde1` feature. (#189) - Implement `BlockRngCore` for `ChaChaCore` and `Hc128Core`. (#281) - All PRNGs are now portable across big- and little-endian architectures. (#209) - `Isaac64Rng::next_u32` no longer throws away half the results. (#209) - Add `IsaacRng::new_from_u64` and `Isaac64Rng::new_from_u64`. (#209) - Add the HC-128 CSPRNG `Hc128Rng`. (#210) -- Add `ChaChaRng::set_rounds` method. (#243) +- Change ChaCha20 to have 64-bit counter and 64-bit stream. (#349) - Changes to `JitterRng` to get its size down from 2112 to 24 bytes. (#251) - Various performance improvements to all PRNGs. @@ -80,17 +81,21 @@ You may also find the [Update Guide](UPDATING.md) useful. ### Distributions - New `Distribution` trait. (#256) +- Add `Distribution::sample_iter` and `Rng::::sample_iter`. (#361) - Deprecate `Rand`, `Sample` and `IndependentSample` traits. (#256) - Add a `Standard` distribution (replaces most `Rand` implementations). (#256) - Add `Binomial` and `Poisson` distributions. (#96) +- Add `Bernoulli` dsitribution. (#411) - Add `Alphanumeric` distribution. (#279) -- Remove `Open01` and `Closed01` distributions, use `Standard` instead (open distribution). (#274) +- Remove `Closed01` distribution, add `OpenClosed01`. (#274, #420) - Rework `Range` type, making it possible to implement it for user types. (#274) -- Add `Range::new_inclusive` for inclusive ranges. (#274) -- Add `Range::sample_single` to allow for optimized implementations. (#274) +- Rename `Range` to `Uniform`. (#395) +- Add `Uniform::new_inclusive` for inclusive ranges. (#274) - Use widening multiply method for much faster integer range reduction. (#274) -- `Standard` distributions for `bool` uses `Range`. (#274) -- `Standard` distributions for `bool` uses sign test. (#274) +- `Standard` distribution for `char` uses `Uniform` internally. (#274) +- `Standard` distribution for `bool` uses sign test. (#274) +- Implement `Standard` distribution for `Wrapping`. (#436) +- Implement `Uniform` distribution for `Duration`. (#427) ## [0.4.2] - 2018-01-06 diff --git a/rand_core/CHANGELOG.md b/rand_core/CHANGELOG.md index ab9aef99231..566e290bb4f 100644 --- a/rand_core/CHANGELOG.md +++ b/rand_core/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Remove `BlockRng{64}::inner` and `BlockRng::inner_mut`; instead making `core` public - Add `BlockRng{64}::index` and `BlockRng{64}::generate_and_set`. (#374, #419) - Change `BlockRngCore::Results` bound to also require `AsMut<[Self::Item]>`. (#419) +- Implement `std::io::Read` for RngCore. (#434) ## [0.1.0] - 2018-04-17 (Split out of the Rand crate, changes here are relative to rand 0.4.2)