Debian Codegraph @

debian/rust-vendor/rand_core/CHANGELOG.md

raw
1 # Changelog
2 All notable changes to this project will be documented in this file.
3
4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7 ## [0.10.1] - 2026-04-13
8
9 ### Fixed
10 - Reference to the `rand` crate in `TryRng` docs ([#75])
11
12 [0.10.1]: https://github.com/rust-random/rand_core/compare/v0.10.0...v0.10.1
13
14 [#75]: https://github.com/rust-random/rand_core/pull/75
15
16 ## [0.10.0] - 2026-02-01
17
18 This release makes a number of significant changes which we hope will be the
19 last significant breakage before 1.0. Code has moved from the [rust-random/rand]
20 repository to its own [rust-random/rand_core].
21
22 ### User-facing API changes
23
24 #### Changed
25 - Edition changed to 2024 and MSRV bumped to 1.85 ([rand#1668])
26 - `RngCore` and `TryRngCore` are renamed to `Rng` and `TryRng` respectively ([#54])
27 - `Rng` is now an extension trait of `TryRng<Error = Infallible>` ([#45])
28 - `TryRng::Error` is bound on `core::error::Error` instead of `Debug + Display` ([#58])
29 - Relax `Sized` bound on impls of `SeedableRng` ([rand#1641])
30
31 #### Added
32 - `SeedableRng::{fork, try_fork}` methods ([#17])
33 - Re-export of `core::convert::Infallible` ([#56])
34
35 #### Removed
36 - `TryRng::read_adapter` method (replaced with `rand::RngReader`) ([rand#1669])
37 - `os_rng` crate feature ([rand#1674])
38 - `OsRng` and `OsError` structs ([rand#1674])
39 - `SeedableRng::from_os_rng` and `SeedableRng::try_from_os_rng` methods ([rand#1674])
40 - `getrandom` dependency ([rand#1674])
41 - `std` crate feature ([rand#1674])
42 - Optional `serde` dependency ([#28])
43 - `UnwrapMut` struct and `Rng::unwrap_mut` method ([#45])
44 - `Rng::unwrap_err` method in favor of explicit wrapping in `UnwrapErr` ([#53])
45
46 ### API changes to PRNG implementation helpers
47
48 ### Added
49 - `BlockRng::reconstruct` and `BlockRng::remaining_results` methods ([#36])
50 - `block::Generator::drop` method ([#35])
51 - `BlockRng::word_offset` method ([#44])
52
53 ### Changed
54 - Replaced `le` helper functions with new `utils` helpers ([rand#1667], [#34], [#38], [#45])
55 - Rename `BlockRng::generate_and_set` method to `reset_and_skip` ([#44])
56 - Rename `block::BlockRngCore` trait to `block::Generator` ([#26])
57 - Rename `BlockRngCore::Results` associated type to `Output` and remove type bounds on it ([#26])
58
59 ### Removed
60 - Implementation of `Rng` for `BlockRng`, making the latter more generic ([#34])
61 - `BlockRng64` struct ([#34])
62 - `BlockRng::reset` method ([#44])
63 - `BlockRng::index` method (replaced with `BlockRng::word_offset`) ([#44])
64 - `Generator::Item` associated type ([#26])
65 - `CryptoBlockRng` ([#69])
66
67 [0.10.0]: https://github.com/rust-random/rand_core/compare/v0.9.3...v0.10.0
68
69 [rand#1641]: https://github.com/rust-random/rand/pull/1641
70 [rand#1667]: https://github.com/rust-random/rand/pull/1667
71 [rand#1668]: https://github.com/rust-random/rand/pull/1668
72 [rand#1669]: https://github.com/rust-random/rand/pull/1669
73 [rand#1674]: https://github.com/rust-random/rand/pull/1674
74 [#17]: https://github.com/rust-random/rand_core/pull/17
75 [#26]: https://github.com/rust-random/rand_core/pull/28
76 [#28]: https://github.com/rust-random/rand_core/pull/28
77 [#34]: https://github.com/rust-random/rand_core/pull/34
78 [#35]: https://github.com/rust-random/rand_core/pull/35
79 [#36]: https://github.com/rust-random/rand_core/pull/36
80 [#38]: https://github.com/rust-random/rand_core/pull/38
81 [#44]: https://github.com/rust-random/rand_core/pull/44
82 [#45]: https://github.com/rust-random/rand_core/pull/45
83 [#53]: https://github.com/rust-random/rand_core/pull/53
84 [#54]: https://github.com/rust-random/rand_core/pull/54
85 [#56]: https://github.com/rust-random/rand_core/pull/56
86 [#58]: https://github.com/rust-random/rand_core/pull/58
87 [#69]: https://github.com/rust-random/rand_core/pull/69
88
89 [rust-random/rand]: https://github.com/rust-random/rand
90 [rust-random/rand_core]: https://github.com/rust-random/rand_core
91
92 ## [0.9.3] - 2025-02-29
93 ### Other
94 - Remove `zerocopy` dependency ([rand#1607])
95 - Deprecate `rand_core::impls::fill_via_u32_chunks`, `fill_via_u64_chunks` ([rand#1607])
96
97 [0.9.3]: https://github.com/rust-random/rand_core/compare/v0.9.2...v0.9.3
98
99 [rand#1607]: https://github.com/rust-random/rand/pull/1607
100
101 ## [0.9.2] - 2025-02-22
102 ### API changes
103 - Relax `Sized` bound on impls of `TryRngCore`, `TryCryptoRng` and `UnwrapMut` ([rand#1593])
104 - Add `UnwrapMut::re` to reborrow the inner rng with a tighter lifetime ([rand#1595])
105
106 [0.9.2]: https://github.com/rust-random/rand_core/compare/v0.9.1...v0.9.2
107
108 [rand#1593]: https://github.com/rust-random/rand/pull/1593
109 [rand#1595]: https://github.com/rust-random/rand/pull/1595
110
111 ## [0.9.1] - 2025-02-16
112 ### API changes
113 - Add `TryRngCore::unwrap_mut`, providing an impl of `RngCore` over `&mut rng` ([rand#1589])
114
115 [0.9.1]: https://github.com/rust-random/rand_core/compare/v0.9.0...v0.9.1
116
117 [rand#1589]: https://github.com/rust-random/rand/pull/1589
118
119 ## [0.9.0] - 2025-01-27
120 ### Dependencies and features
121 - Bump the MSRV to 1.63.0 ([rand#1536]); note that 1.60.0 may work for dependents when using `--ignore-rust-version`
122 - Update to `getrandom` v0.3.0 ([rand#1558])
123 - Use `zerocopy` to replace some `unsafe` code ([rand#1349], [rand#1393], [rand#1446], [rand#1502])
124 - Rename feature `serde1` to `serde` ([rand#1477])
125 - Rename feature `getrandom` to `os_rng` ([rand#1537])
126
127 ### API changes
128 - Allow `rand_core::impls::fill_via_u*_chunks` to mutate source ([rand#1182])
129 - Add fn `RngCore::read_adapter` implementing `std::io::Read` ([rand#1267])
130 - Add trait `CryptoBlockRng: BlockRngCore`; make `trait CryptoRng: RngCore` replacing `CryptoRngCore` ([rand#1273])
131 - Add traits `TryRngCore`, `TryCryptoRng` ([rand#1424], [rand#1499])
132 - Rename `fn SeedableRng::from_rng` -> `try_from_rng` and add infallible variant `fn from_rng` ([rand#1424])
133 - Rename `fn SeedableRng::from_entropy` -> `from_os_rng` and add fallible variant `fn try_from_os_rng` ([rand#1424])
134 - Add bounds `Clone` and `AsRef` to associated type `SeedableRng::Seed` ([rand#1491])
135
136 [0.9.0]: https://github.com/rust-random/rand_core/compare/v0.6.4...v0.9.0
137
138 [rand#1182]: https://github.com/rust-random/rand/pull/1182
139 [rand#1267]: https://github.com/rust-random/rand/pull/1267
140 [rand#1273]: https://github.com/rust-random/rand/pull/1273
141 [rand#1349]: https://github.com/rust-random/rand/pull/1349
142 [rand#1393]: https://github.com/rust-random/rand/pull/1393
143 [rand#1424]: https://github.com/rust-random/rand/pull/1424
144 [rand#1446]: https://github.com/rust-random/rand/pull/1446
145 [rand#1477]: https://github.com/rust-random/rand/pull/1477
146 [rand#1491]: https://github.com/rust-random/rand/pull/1491
147 [rand#1499]: https://github.com/rust-random/rand/pull/1499
148 [rand#1502]: https://github.com/rust-random/rand/pull/1502
149 [rand#1536]: https://github.com/rust-random/rand/pull/1536
150 [rand#1537]: https://github.com/rust-random/rand/pull/1537
151 [rand#1558]: https://github.com/rust-random/rand/pull/1558
152
153 ## [0.6.4] - 2022-09-15
154 - Fix unsoundness in `<BlockRng64 as RngCore>::next_u32` ([rand#1160])
155 - Reduce use of `unsafe` and improve gen_bytes performance ([rand#1180])
156 - Add `CryptoRngCore` trait ([rand#1187], [rand#1230])
157
158 [0.6.4]: https://github.com/rust-random/rand_core/compare/v0.6.3...v0.6.4
159
160 [rand#1160]: https://github.com/rust-random/rand/pull/1160
161 [rand#1180]: https://github.com/rust-random/rand/pull/1180
162 [rand#1187]: https://github.com/rust-random/rand/pull/1187
163 [rand#1230]: https://github.com/rust-random/rand/pull/1230
164
165 ## [0.6.3] - 2021-06-15
166 ### Changed
167 - Improved bound for `serde` impls on `BlockRng` ([rand#1130])
168 - Minor doc additions ([rand#1118])
169
170 [0.6.3]: https://github.com/rust-random/rand_core/compare/v0.6.2...v0.6.3
171
172 [rand#1118]: https://github.com/rust-random/rand/pull/1118
173 [rand#1130]: https://github.com/rust-random/rand/pull/1130
174
175 ## [0.6.2] - 2021-02-12
176 ### Fixed
177 - Fixed assertions in `le::read_u32_into` and `le::read_u64_into` which could
178 have allowed buffers not to be fully populated ([rand#1096])
179
180 [0.6.2]: https://github.com/rust-random/rand_core/compare/v0.6.1...v0.6.2
181
182 [rand#1096]: https://github.com/rust-random/rand/pull/1096
183
184 ## [0.6.1] - 2021-01-03
185 ### Fixed
186 - Avoid panic when using `RngCore::seed_from_u64` with a seed which is not a
187 multiple of four ([rand#1082])
188 ### Other
189 - Enable all stable features in the playground ([rand#1081])
190
191 [0.6.1]: https://github.com/rust-random/rand_core/compare/v0.6.0...v0.6.1
192
193 [rand#1081]: https://github.com/rust-random/rand/pull/1081
194 [rand#1082]: https://github.com/rust-random/rand/pull/1082
195
196 ## [0.6.0] - 2020-12-08
197 ### Breaking changes
198 - Bump MSRV to 1.36, various code improvements ([rand#1011])
199 - Update to getrandom v0.2 ([rand#1041])
200 - Fix: `next_u32_via_fill` and `next_u64_via_fill` now use LE as documented ([rand#1061])
201
202 ### Other
203 - Reduce usage of `unsafe` ([rand#962], [rand#963], [rand#1011])
204 - Annotate feature-gates in documentation ([rand#1019])
205 - Document available error codes ([rand#1061])
206 - Various documentation tweaks
207 - Fix some clippy warnings ([rand#1036])
208 - Apply rustfmt ([rand#926])
209
210 [0.6.0]: https://github.com/rust-random/rand_core/compare/v0.5.1...v0.6.0
211
212 [rand#926]: https://github.com/rust-random/rand/pull/926
213 [rand#962]: https://github.com/rust-random/rand/pull/962
214 [rand#963]: https://github.com/rust-random/rand/pull/963
215 [rand#1011]: https://github.com/rust-random/rand/pull/1011
216 [rand#1019]: https://github.com/rust-random/rand/pull/1019
217 [rand#1036]: https://github.com/rust-random/rand/pull/1036
218 [rand#1041]: https://github.com/rust-random/rand/pull/1041
219 [rand#1061]: https://github.com/rust-random/rand/pull/1061
220
221 ## [0.5.1] - 2019-08-28
222 - `OsRng` added to `rand_core` ([rand#863])
223 - `Error::INTERNAL_START` and `Error::CUSTOM_START` constants ([rand#864])
224 - `Error::raw_os_error` method ([rand#864])
225 - `Debug` and `Display` formatting for `getrandom` error codes without `std` ([rand#864])
226 ### Changed
227 - `alloc` feature in `no_std` is available since Rust 1.36 ([rand#856])
228 - Added `#[inline]` to `Error` conversion methods ([rand#864])
229
230 [0.5.1]: https://github.com/rust-random/rand_core/compare/v0.5.0...v0.5.1
231
232 [rand#863]: https://github.com/rust-random/rand/pull/863
233 [rand#864]: https://github.com/rust-random/rand/pull/864
234 [rand#856]: https://github.com/rust-random/rand/pull/856
235 [rand#864]: https://github.com/rust-random/rand/pull/864
236
237 ## [0.5.0] - 2019-06-06
238 ### Changed
239 - Enable testing with Miri and fix incorrect pointer usages ([rand#779], [rand#780], [rand#781], [rand#783], [rand#784])
240 - Rewrite `Error` type and adjust API ([rand#800])
241 - Adjust usage of `#[inline]` for `BlockRng` and `BlockRng64`
242
243 [0.5.0]: https://github.com/rust-random/rand_core/compare/v0.4.0...v0.5.0
244
245 [rand#779]: https://github.com/rust-random/rand/pull/779
246 [rand#780]: https://github.com/rust-random/rand/pull/780
247 [rand#781]: https://github.com/rust-random/rand/pull/781
248 [rand#783]: https://github.com/rust-random/rand/pull/783
249 [rand#784]: https://github.com/rust-random/rand/pull/784
250 [rand#800]: https://github.com/rust-random/rand/pull/800
251
252 ## [0.4.0] - 2019-01-24
253 ### Changed
254 - Disable the `std` feature by default ([rand#702])
255
256 [0.4.0]: https://github.com/rust-random/rand_core/compare/v0.3.0...v0.4.0
257
258 [rand#702]: https://github.com/rust-random/rand/pull/702
259
260 ## [0.3.0] - 2018-09-24
261 ### Added
262 - Add `SeedableRng::seed_from_u64` for convenient seeding. ([rand#537])
263
264 [0.3.0]: https://github.com/rust-random/rand_core/compare/v0.2.1...v0.3.0
265
266 [rand#537]: https://github.com/rust-random/rand/pull/537
267
268 ## [0.2.1] - 2018-06-08
269 ### Added
270 - References to a `CryptoRng` now also implement `CryptoRng`. ([rand#470])
271
272 [0.2.1]: https://github.com/rust-random/rand_core/compare/v0.2.0...v0.2.1
273
274 [rand#470]: https://github.com/rust-random/rand/pull/470
275
276 ## [0.2.0] - 2018-05-21
277 ### Changed
278 - Enable the `std` feature by default. ([rand#409])
279 - Remove `BlockRng{64}::inner` and `BlockRng::inner_mut`; instead making `core` public
280 - Change `BlockRngCore::Results` bound to also require `AsMut<[Self::Item]>`. ([rand#419])
281 ### Added
282 - Add `BlockRng{64}::index` and `BlockRng{64}::generate_and_set`. ([rand#374], [rand#419])
283 - Implement `std::io::Read` for RngCore. ([rand#434])
284
285 [0.2.0]: https://github.com/rust-random/rand_core/compare/v0.1.0...v0.2.0
286
287 [rand#374]: https://github.com/rust-random/rand/pull/374
288 [rand#409]: https://github.com/rust-random/rand/pull/409
289 [rand#419]: https://github.com/rust-random/rand/pull/419
290 [rand#434]: https://github.com/rust-random/rand/pull/434
291
292 ## [0.1.0] - 2018-04-17
293 (Split out of the Rand crate, changes here are relative to rand 0.4.2.)
294 ### Added
295 - `RngCore` and `SeedableRng` are now part of `rand_core`. ([rand#288])
296 - Add modules to help implementing RNGs `impl` and `le`. ([rand#209], [rand#228])
297 - Add `Error` and `ErrorKind`. ([rand#225])
298 - Add `CryptoRng` marker trait. ([rand#273])
299 - Add `BlockRngCore` trait. ([rand#281])
300 - Add `BlockRng` and `BlockRng64` wrappers to help implementations. ([rand#281], [rand#325])
301 - Add `RngCore::try_fill_bytes`. ([rand#225])
302 ### Changed
303 - Revise the `SeedableRng` trait. ([rand#233])
304 - Remove default implementations for `RngCore::next_u64` and `RngCore::fill_bytes`. ([rand#288])
305
306 [0.1.0]: https://github.com/rust-random/rand_core/compare/v0.0.0...v0.1.0
307
308 [rand#209]: https://github.com/rust-random/rand/pull/209
309 [rand#225]: https://github.com/rust-random/rand/pull/225
310 [rand#228]: https://github.com/rust-random/rand/pull/228
311 [rand#233]: https://github.com/rust-random/rand/pull/233
312 [rand#273]: https://github.com/rust-random/rand/pull/273
313 [rand#281]: https://github.com/rust-random/rand/pull/281
314 [rand#288]: https://github.com/rust-random/rand/pull/288
315 [rand#325]: https://github.com/rust-random/rand/pull/325