@@ -15,6 +15,7 @@ You may also find the [Update Guide](UPDATING.md) useful.
15
15
- Minimum Rust version update: 1.22.0. (#239 )
16
16
- Create a separate ` rand_core ` crate. (#288 )
17
17
- Deprecate ` rand_derive ` . (#256 )
18
+ - Add ` prelude ` (and module reorganisation). (#435 )
18
19
- Add ` log ` feature. Logging is now available in ` JitterRng ` , ` OsRng ` , ` EntropyRng ` and ` ReseedingRng ` . (#246 )
19
20
- Add ` serde1 ` feature for some PRNGs. (#189 )
20
21
- ` 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.
47
48
- Add ` SmallRng ` wrapper. (#296 )
48
49
- Rewrite ` ReseedingRng ` to only work with ` BlockRngCore ` (substantial performance improvement). (#281 )
49
50
- Deprecate ` weak_rng ` . Use ` SmallRng ` instead. (#296 )
50
- - Deprecate ` random ` . (#296 )
51
51
- Deprecate ` AsciiGenerator ` . (#279 )
52
52
53
53
### Random number generators
@@ -56,13 +56,14 @@ You may also find the [Update Guide](UPDATING.md) useful.
56
56
- Change ` thread_rng ` reseeding threshold to 32 MiB. (#277 )
57
57
- PRNGs no longer implement ` Copy ` . (#209 )
58
58
- ` Debug ` implementations no longer show internals. (#209 )
59
+ - Implement ` Clone ` for ` ReseedingRng ` , ` JitterRng ` , OsRng`. (#383 , #384 )
59
60
- Implement serialization for ` XorShiftRng ` , ` IsaacRng ` and ` Isaac64Rng ` under the ` serde1 ` feature. (#189 )
60
61
- Implement ` BlockRngCore ` for ` ChaChaCore ` and ` Hc128Core ` . (#281 )
61
62
- All PRNGs are now portable across big- and little-endian architectures. (#209 )
62
63
- ` Isaac64Rng::next_u32 ` no longer throws away half the results. (#209 )
63
64
- Add ` IsaacRng::new_from_u64 ` and ` Isaac64Rng::new_from_u64 ` . (#209 )
64
65
- Add the HC-128 CSPRNG ` Hc128Rng ` . (#210 )
65
- - Add ` ChaChaRng::set_rounds ` method . (#243 )
66
+ - Change ChaCha20 to have 64-bit counter and 64-bit stream . (#349 )
66
67
- Changes to ` JitterRng ` to get its size down from 2112 to 24 bytes. (#251 )
67
68
- Various performance improvements to all PRNGs.
68
69
@@ -80,17 +81,21 @@ You may also find the [Update Guide](UPDATING.md) useful.
80
81
81
82
### Distributions
82
83
- New ` Distribution ` trait. (#256 )
84
+ - Add ` Distribution::sample_iter ` and ` Rng::::sample_iter ` . (#361 )
83
85
- Deprecate ` Rand ` , ` Sample ` and ` IndependentSample ` traits. (#256 )
84
86
- Add a ` Standard ` distribution (replaces most ` Rand ` implementations). (#256 )
85
87
- Add ` Binomial ` and ` Poisson ` distributions. (#96 )
88
+ - Add ` Bernoulli ` dsitribution. (#411 )
86
89
- Add ` Alphanumeric ` distribution. (#279 )
87
- - Remove ` Open01 ` and ` Closed01 ` distributions, use ` Standard ` instead (open distribution) . (#274 )
90
+ - Remove ` Closed01 ` distribution, add ` OpenClosed01 ` . (#274 , # 420 )
88
91
- Rework ` Range ` type, making it possible to implement it for user types. (#274 )
89
- - Add ` Range::new_inclusive ` for inclusive ranges . (#274 )
90
- - Add ` Range::sample_single ` to allow for optimized implementations . (#274 )
92
+ - Rename ` Range ` to ` Uniform ` . (#395 )
93
+ - Add ` Uniform::new_inclusive ` for inclusive ranges . (#274 )
91
94
- Use widening multiply method for much faster integer range reduction. (#274 )
92
- - ` Standard ` distributions for ` bool ` uses ` Range ` . (#274 )
93
- - ` Standard ` distributions for ` bool ` uses sign test. (#274 )
95
+ - ` Standard ` distribution for ` char ` uses ` Uniform ` internally. (#274 )
96
+ - ` Standard ` distribution for ` bool ` uses sign test. (#274 )
97
+ - Implement ` Standard ` distribution for ` Wrapping<T> ` . (#436 )
98
+ - Implement ` Uniform ` distribution for ` Duration ` . (#427 )
94
99
95
100
96
101
## [ 0.4.2] - 2018-01-06
0 commit comments