You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a pre-release. To depend on this version, use `rand = "=0.9.0-beta.0"` to prevent automatic updates (which can be expected to include breaking changes).
23
-
11
+
## [0.9.0] - 2025-01-27
24
12
### Security and unsafe
25
13
- Policy: "rand is not a crypto library" (#1514)
26
14
- Remove fork-protection from `ReseedingRng` and `ThreadRng`. Instead, it is recommended to call `ThreadRng::reseed` on fork. (#1379)
27
15
- Use `zerocopy` to replace some `unsafe` code (#1349, #1393, #1446, #1502)
28
16
29
-
### Compilation options
17
+
### Dependencies
30
18
- Bump the MSRV to 1.63.0 (#1207, #1246, #1269, #1341, #1416, #1536); note that 1.60.0 may work for dependents when using `--ignore-rust-version`
19
+
- Update to `rand_core` v0.9.0 (#1558)
20
+
21
+
### Features
31
22
- Support `std` feature without `getrandom` or `rand_chacha` (#1354)
32
-
- Improve `thread_rng` related docs (#1257)
33
-
- The `serde1` feature has been renamed `serde` (#1477)
34
-
- The implicit feature `rand_chacha` has been removed. This is enabled by `std_rng`. (#1473)
35
23
- Enable feature `small_rng` by default (#1455)
24
+
- Remove implicit feature `rand_chacha`; use `std_rng` instead. (#1473)
- Relax `Sized` bound on `Distribution<T> for &D` (#1278)
72
63
- Remove impl of `Distribution<Option<T>>` for `StandardUniform` (#1526)
73
64
- Let distribution `StandardUniform` support all `NonZero*` types (#1332)
74
65
- Fns `{Uniform, UniformSampler}::{new, new_inclusive}` return a `Result` (instead of potentially panicking) (#1229)
75
66
- Distribution `Uniform` implements `TryFrom` instead of `From` for ranges (#1229)
76
-
- Optimize distribution `Uniform`: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #1287)
77
-
- Add `UniformUsize` and use to make `Uniform` for `usize` portable (#1487)
78
-
- Remove support for generating `isize` and `usize` values with `Standard`, `Uniform` (except via `UniformUsize`) and `Fill` and usage as a `WeightedAliasIndex` weight (#1487)
79
-
- Optimize fn `sample_single_inclusive` for floats (+~20% perf) (#1289)
80
-
- Allow `UniformFloat::new` samples and `UniformFloat::sample_single` to yield `high` (#1462)
67
+
- Add `UniformUsize` (#1487)
68
+
- Remove support for generating `isize` and `usize` values with `StandardUniform`, `Uniform` (except via `UniformUsize`) and `Fill` and usage as a `WeightedAliasIndex` weight (#1487)
81
69
- Add impl `DistString` for distributions `Slice<char>` and `Uniform<char>` (#1315)
82
70
- Add fn `Slice::num_choices` (#1402)
83
-
- Fix portability of distribution `Slice` (#1469)
84
-
- Add trait `Weight`, allowing `WeightedIndex` to trap overflow (#1353)
85
-
- Add fns `weight, weights, total_weight` to distribution `WeightedIndex` (#1420)
86
-
- Rename enum `WeightedError` to `WeightError`, revising variants (#1382) and mark as `#[non_exhaustive]` (#1480)
87
71
- Add fn `p()` for distribution `Bernoulli` to access probability (#1481)
88
72
89
-
### SIMD
73
+
### API changes: Weighted distributions
74
+
- Add `pub` module `rand::distr::weighted`, moving `WeightedIndex` there (#1548)
75
+
- Add trait `weighted::Weight`, allowing `WeightedIndex` to trap overflow (#1353)
76
+
- Add fns `weight, weights, total_weight` to distribution `WeightedIndex` (#1420)
77
+
- Rename enum `WeightedError` to `weighted::Error`, revising variants (#1382) and mark as `#[non_exhaustive]` (#1480)
78
+
79
+
### API changes: SIMD
90
80
- Switch to `std::simd`, expand SIMD & docs (#1239)
Copy file name to clipboardexpand all lines: rand_chacha/CHANGELOG.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
-
## [0.9.0-beta.1] - 2024-11-30
8
-
- Bump `rand_core` version
9
-
10
-
## [0.9.0-beta.0] - 2024-11-25
11
-
This is a pre-release. To depend on this version, use `rand_chacha = "=0.9.0-beta.0"` to prevent automatic updates (which can be expected to include breaking changes).
7
+
## [0.9.0] - 2025-01-27
8
+
### Dependencies and features
9
+
- Update to `rand_core` v0.9.0 (#1558)
10
+
- Feature `std` now implies feature `rand_core/std` (#1153)
11
+
- Rename feature `serde1` to `serde` (#1477)
12
+
- Rename feature `getrandom` to `os_rng` (#1537)
12
13
13
-
- Made `rand_chacha` propagate the `std` feature down to `rand_core` (#1153)
14
+
### Other changes
14
15
- Remove usage of `unsafe` in `fn generate` (#1181) then optimise for AVX2 (~4-7%) (#1192)
15
-
- The `serde1` feature has been renamed `serde` (#1477)
16
16
- Revise crate docs (#1454)
17
-
- Rename feature `getrandom` to `os_rng` (#1537)
18
17
19
18
## [0.3.1] - 2021-06-09
20
19
- add getters corresponding to existing setters: `get_seed`, `get_stream` (#1124)
Copy file name to clipboardexpand all lines: rand_core/CHANGELOG.md
+8-10
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,22 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
-
## [0.9.0-beta.1] - 2024-11-30
8
-
- Update to `getrandom` v0.3.0-rc.0
9
-
10
-
## [0.9.0-beta.0] - 2024-11-25
11
-
This is a pre-release. To depend on this version, use `rand_core = "=0.9.0-beta.0"` to prevent automatic updates (which can be expected to include breaking changes).
12
-
13
-
### Compilation options and unsafe
7
+
## [0.9.0] - 2025-01-27
8
+
### Dependencies and features
14
9
- Bump the MSRV to 1.63.0 (#1207, #1246, #1269, #1341, #1416, #1536); note that 1.60.0 may work for dependents when using `--ignore-rust-version`
15
-
-The `serde1` feature has been renamed `serde` (#1477)
10
+
-Update to `getrandom` v0.3.0 (#1558)
16
11
- Use `zerocopy` to replace some `unsafe` code (#1349, #1393, #1446, #1502)
12
+
- Rename feature `serde1` to `serde` (#1477)
13
+
- Rename feature `getrandom` to `os_rng` (#1537)
17
14
18
-
### Other
15
+
### API changes
19
16
- Allow `rand_core::impls::fill_via_u*_chunks` to mutate source (#1182)
0 commit comments