| 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](http://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.3.4] - 2025-10-14 |
| 8 |
|
| 9 |
### Major change to `wasm_js` backend |
| 10 |
|
| 11 |
Now, when the `wasm_js` feature is enabled, the `wasm_js` backend will be used |
| 12 |
by default. Users of `wasm32-unknown-unknown` targeting JavaScript environments |
| 13 |
like the Web and Node.js will no longer need to specify: |
| 14 |
``` |
| 15 |
--cfg getrandom_backend="wasm_js" |
| 16 |
``` |
| 17 |
in `RUSTFLAGS` for the crate to compile. They can now simple enable a feature. |
| 18 |
|
| 19 |
Note: this should not affect non-JS users of the `wasm32-unknown-unknown` |
| 20 |
target. Using `--cfg getrandom_backend` will still override the source of |
| 21 |
randomness _even if_ the `wasm_js` feature is enabled. This includes |
| 22 |
`--cfg getrandom_backend=custom` and `--cfg getrandom_backend=unsupported`. |
| 23 |
|
| 24 |
For more information, see the discussions in [#671], [#675], and [#730]. |
| 25 |
|
| 26 |
### Added |
| 27 |
- `unsupported` opt-in backend [#667] |
| 28 |
- `windows_legacy` opt-in backend [#724] |
| 29 |
|
| 30 |
### Changed |
| 31 |
- Implement Memory Sanitizer unpoisoning more precisely [#678] |
| 32 |
- Relax MSRV for the `linux_raw` opt-in backend on ARM targets [#688] |
| 33 |
- Use `getrandom` syscall on all RISC-V Linux targets [#699] |
| 34 |
- Replaced `wasi` dependency with `wasip2` [#721] |
| 35 |
- Enable `wasm_js` backend by default if the `wasm_js` feature is enabled [#730] |
| 36 |
|
| 37 |
### Removed |
| 38 |
- Unstable `rustc-dep-of-std` crate feature [#694] |
| 39 |
|
| 40 |
[#667]: https://github.com/rust-random/getrandom/pull/667 |
| 41 |
[#671]: https://github.com/rust-random/getrandom/issues/671 |
| 42 |
[#675]: https://github.com/rust-random/getrandom/pull/675 |
| 43 |
[#678]: https://github.com/rust-random/getrandom/pull/678 |
| 44 |
[#688]: https://github.com/rust-random/getrandom/pull/688 |
| 45 |
[#694]: https://github.com/rust-random/getrandom/pull/694 |
| 46 |
[#699]: https://github.com/rust-random/getrandom/pull/699 |
| 47 |
[#721]: https://github.com/rust-random/getrandom/pull/721 |
| 48 |
[#724]: https://github.com/rust-random/getrandom/pull/724 |
| 49 |
[#730]: https://github.com/rust-random/getrandom/pull/730 |
| 50 |
|
| 51 |
## [0.3.3] - 2025-05-09 |
| 52 |
|
| 53 |
### Changed |
| 54 |
- Doc improvements [#632] [#634] [#635] |
| 55 |
- Add crate version to docs.rs links used in `compile_error!`s [#639] |
| 56 |
|
| 57 |
### Fixed |
| 58 |
- Error handling in WASI p1 [#661] |
| 59 |
|
| 60 |
[#632]: https://github.com/rust-random/getrandom/pull/632 |
| 61 |
[#634]: https://github.com/rust-random/getrandom/pull/634 |
| 62 |
[#635]: https://github.com/rust-random/getrandom/pull/635 |
| 63 |
[#639]: https://github.com/rust-random/getrandom/pull/639 |
| 64 |
[#661]: https://github.com/rust-random/getrandom/pull/661 |
| 65 |
|
| 66 |
## [0.3.2] - 2025-03-17 |
| 67 |
|
| 68 |
### Added |
| 69 |
- `efi_rng` opt-in backend [#570] |
| 70 |
- `linux_raw` opt-in backend [#572] |
| 71 |
- `.cargo/config.toml` example in the crate-level docs [#591] |
| 72 |
- `getrandom_test_linux_without_fallback` configuration flag to test that file fallback |
| 73 |
is not triggered in the `linux_android_with_fallback` backend [#605] |
| 74 |
- Built-in support for `*-linux-none` targets [#618] |
| 75 |
- Cygwin support [#626] |
| 76 |
|
| 77 |
### Changed |
| 78 |
- Update `wasi` dependency to v0.14 [#594] |
| 79 |
- Add `#[inline]` attribute to the inner functions [#596] |
| 80 |
- Update WASI and Emscripten links in the crate-level docs [#597] |
| 81 |
- Do not use `dlsym` on MUSL targets in the `linux_android_with_fallback` backend [#602] |
| 82 |
- Remove `linux_android.rs` and use `getrandom.rs` instead [#603] |
| 83 |
- Always use `RtlGenRandom` on Windows targets when compiling with pre-1.78 Rust [#610] |
| 84 |
- Internal representation of the `Error` type [#614] |
| 85 |
- Remove `windows-targets` dependency and use [`raw-dylib`] directly [#627] |
| 86 |
|
| 87 |
### Removed |
| 88 |
- `Error::INTERNAL_START` and `Error::CUSTOM_START` associated constants [#614] |
| 89 |
|
| 90 |
[#570]: https://github.com/rust-random/getrandom/pull/570 |
| 91 |
[#572]: https://github.com/rust-random/getrandom/pull/572 |
| 92 |
[#591]: https://github.com/rust-random/getrandom/pull/591 |
| 93 |
[#594]: https://github.com/rust-random/getrandom/pull/594 |
| 94 |
[#596]: https://github.com/rust-random/getrandom/pull/596 |
| 95 |
[#597]: https://github.com/rust-random/getrandom/pull/597 |
| 96 |
[#602]: https://github.com/rust-random/getrandom/pull/602 |
| 97 |
[#603]: https://github.com/rust-random/getrandom/pull/603 |
| 98 |
[#605]: https://github.com/rust-random/getrandom/pull/605 |
| 99 |
[#610]: https://github.com/rust-random/getrandom/pull/610 |
| 100 |
[#614]: https://github.com/rust-random/getrandom/pull/614 |
| 101 |
[#618]: https://github.com/rust-random/getrandom/pull/618 |
| 102 |
[#626]: https://github.com/rust-random/getrandom/pull/626 |
| 103 |
[#627]: https://github.com/rust-random/getrandom/pull/627 |
| 104 |
[`raw-dylib`]: https://doc.rust-lang.org/reference/items/external-blocks.html?highlight=link#dylib-versus-raw-dylib |
| 105 |
|
| 106 |
## [0.3.1] - 2025-01-28 |
| 107 |
|
| 108 |
### Fixed |
| 109 |
- Build error on Android [#588] |
| 110 |
|
| 111 |
[#588]: https://github.com/rust-random/getrandom/pull/588 |
| 112 |
|
| 113 |
## [0.3.0] - 2025-01-25 |
| 114 |
|
| 115 |
### Breaking Changes |
| 116 |
|
| 117 |
#### Changed |
| 118 |
- Bump MSRV to 1.63 [#542] |
| 119 |
- Rename `getrandom` and `getrandom_uninit` functions to `fill` and `fill_uninit` respectively [#532] |
| 120 |
|
| 121 |
#### Removed |
| 122 |
- `wasm32-wasi` target support (use `wasm32-wasip1` or `wasm32-wasip2` instead) [#499] |
| 123 |
- `linux_disable_fallback`, `rdrand`, `js`, `test-in-browser`, and `custom` crate features |
| 124 |
in favor of configuration flags [#504] |
| 125 |
- `register_custom_getrandom!` macro [#504] |
| 126 |
- Implementation of `From<NonZeroU32>` for `Error` and `Error::code` method [#507] |
| 127 |
- Internet Explorer 11 support [#554] |
| 128 |
- Target-specific associated `Error` constants [#562] |
| 129 |
|
| 130 |
### Changed |
| 131 |
- Use `ProcessPrng` on Windows 10 and up, and use `RtlGenRandom` on older Windows versions [#415] |
| 132 |
- Do not use locale-specific `strerror_r` for retrieving error code descriptions [#440] |
| 133 |
- Avoid assuming `usize` is the native word size in the `rdrand` backend [#442] |
| 134 |
- Do not read from `errno` when `libc` did not indicate error on Solaris [#448] |
| 135 |
- Switch from `libpthread`'s mutex to `futex` on Linux and to `nanosleep`-based wait loop |
| 136 |
on other targets in the `use_file` backend [#490] |
| 137 |
- Do not retry on `EAGAIN` while polling `/dev/random` on Linux [#522] |
| 138 |
- Remove separate codepath for Node.js in the `wasm_js` backend |
| 139 |
(bumps minimum supported Node.js version to v19) [#557] |
| 140 |
- Use `js_namespace` in the `wasm_js` backend [#559] |
| 141 |
|
| 142 |
### Added |
| 143 |
- `wasm32-wasip1` and `wasm32-wasip2` support [#499] |
| 144 |
- `getrandom_backend` configuration flag for selection of opt-in backends [#504] |
| 145 |
- `Error::new_custom` method [#507] |
| 146 |
- `rndr` opt-in backend [#512] |
| 147 |
- Automatic MemorySanitizer support [#521] [#571] |
| 148 |
- `u32` and `u64` functions for generating random values of the respective type [#544] |
| 149 |
- `wasm32v1-none` support in the `wasm_js` backend [#560] |
| 150 |
- `wasm_js` crate feature which allows users to enable the `wasm_js` opt-in backend [#574] |
| 151 |
|
| 152 |
### Fixed |
| 153 |
- NetBSD fallback code based on `KERN_ARND` [#555] |
| 154 |
|
| 155 |
[#415]: https://github.com/rust-random/getrandom/pull/415 |
| 156 |
[#440]: https://github.com/rust-random/getrandom/pull/440 |
| 157 |
[#442]: https://github.com/rust-random/getrandom/pull/442 |
| 158 |
[#448]: https://github.com/rust-random/getrandom/pull/448 |
| 159 |
[#490]: https://github.com/rust-random/getrandom/pull/490 |
| 160 |
[#499]: https://github.com/rust-random/getrandom/pull/499 |
| 161 |
[#504]: https://github.com/rust-random/getrandom/pull/504 |
| 162 |
[#507]: https://github.com/rust-random/getrandom/pull/507 |
| 163 |
[#512]: https://github.com/rust-random/getrandom/pull/512 |
| 164 |
[#521]: https://github.com/rust-random/getrandom/pull/521 |
| 165 |
[#522]: https://github.com/rust-random/getrandom/pull/522 |
| 166 |
[#532]: https://github.com/rust-random/getrandom/pull/532 |
| 167 |
[#542]: https://github.com/rust-random/getrandom/pull/542 |
| 168 |
[#544]: https://github.com/rust-random/getrandom/pull/544 |
| 169 |
[#554]: https://github.com/rust-random/getrandom/pull/554 |
| 170 |
[#555]: https://github.com/rust-random/getrandom/pull/555 |
| 171 |
[#557]: https://github.com/rust-random/getrandom/pull/557 |
| 172 |
[#559]: https://github.com/rust-random/getrandom/pull/559 |
| 173 |
[#560]: https://github.com/rust-random/getrandom/pull/560 |
| 174 |
[#562]: https://github.com/rust-random/getrandom/pull/562 |
| 175 |
[#571]: https://github.com/rust-random/getrandom/pull/571 |
| 176 |
[#574]: https://github.com/rust-random/getrandom/pull/574 |
| 177 |
|
| 178 |
## [0.2.16] - 2025-04-22 |
| 179 |
### Added |
| 180 |
- Cygwin support (backport of [#626]) [#654] |
| 181 |
|
| 182 |
[#654]: https://github.com/rust-random/getrandom/pull/654 |
| 183 |
|
| 184 |
## [0.2.15] - 2024-05-06 |
| 185 |
### Added |
| 186 |
- Apple visionOS support [#410] |
| 187 |
|
| 188 |
### Changed |
| 189 |
- Use `libc::getrandom` on DragonflyBSD, FreeBSD, illumos, and Solaris [#411] [#416] [#417] [#420] |
| 190 |
- Unify `libc::getentropy`-based implementations [#418] |
| 191 |
|
| 192 |
[#410]: https://github.com/rust-random/getrandom/pull/410 |
| 193 |
[#411]: https://github.com/rust-random/getrandom/pull/411 |
| 194 |
[#416]: https://github.com/rust-random/getrandom/pull/416 |
| 195 |
[#417]: https://github.com/rust-random/getrandom/pull/417 |
| 196 |
[#418]: https://github.com/rust-random/getrandom/pull/418 |
| 197 |
[#420]: https://github.com/rust-random/getrandom/pull/420 |
| 198 |
|
| 199 |
## [0.2.14] - 2024-04-08 |
| 200 |
### Fixed |
| 201 |
- Enable `/dev/urandom` fallback for MUSL-based Linux targets [#408] |
| 202 |
|
| 203 |
[#408]: https://github.com/rust-random/getrandom/pull/408 |
| 204 |
|
| 205 |
## [0.2.13] - 2024-04-06 |
| 206 |
### Added |
| 207 |
- `linux_disable_fallback` crate feature to disable `/dev/urandom`-based fallback on Linux and |
| 208 |
Android targets. Enabling this feature bumps minimum supported Linux kernel version to 3.17 and |
| 209 |
Android API level to 23 (Marshmallow). [#396] |
| 210 |
|
| 211 |
### Changed |
| 212 |
- Disable `/dev/urandom` fallback for Linux targets outside of the following `target_arch`es: |
| 213 |
`aarch64`, `arm`, `powerpc`, `powerpc64`, `s390x`, `x86`, `x86_64` [#396] |
| 214 |
- Do not catch `EPERM` error code on Android while checking availability of |
| 215 |
the `getrandom` syscall [#396] |
| 216 |
|
| 217 |
[#396]: https://github.com/rust-random/getrandom/pull/396 |
| 218 |
|
| 219 |
## [0.2.12] - 2024-01-09 |
| 220 |
### Fixed |
| 221 |
- Custom backend for targets without atomics [#385] |
| 222 |
|
| 223 |
### Changed |
| 224 |
- Improve robustness of the Hermit backend and `sys_fill_exact` [#386] |
| 225 |
- Raise minimum supported Apple OS versions to macOS 10.12 and iOS 10 [#388] |
| 226 |
|
| 227 |
### Added |
| 228 |
- Document platform support policy [#387] |
| 229 |
|
| 230 |
[#385]: https://github.com/rust-random/getrandom/pull/385 |
| 231 |
[#386]: https://github.com/rust-random/getrandom/pull/386 |
| 232 |
[#387]: https://github.com/rust-random/getrandom/pull/387 |
| 233 |
[#388]: https://github.com/rust-random/getrandom/pull/388 |
| 234 |
|
| 235 |
## [0.2.11] - 2023-11-08 |
| 236 |
### Added |
| 237 |
- GNU/Hurd support [#370] |
| 238 |
|
| 239 |
### Changed |
| 240 |
- Renamed `__getrandom_internal` to `__GETRANDOM_INTERNAL` [#369] |
| 241 |
- Updated link to Hermit docs [#374] |
| 242 |
|
| 243 |
[#369]: https://github.com/rust-random/getrandom/pull/369 |
| 244 |
[#370]: https://github.com/rust-random/getrandom/pull/370 |
| 245 |
[#374]: https://github.com/rust-random/getrandom/pull/374 |
| 246 |
|
| 247 |
## [0.2.10] - 2023-06-06 |
| 248 |
### Added |
| 249 |
- Support for PS Vita (`armv7-sony-vita-newlibeabihf`) [#359] |
| 250 |
|
| 251 |
### Changed |
| 252 |
- Use getentropy from libc on Emscripten targets [#362] |
| 253 |
|
| 254 |
[#359]: https://github.com/rust-random/getrandom/pull/359 |
| 255 |
[#362]: https://github.com/rust-random/getrandom/pull/362 |
| 256 |
|
| 257 |
## [0.2.9] - 2023-04-06 |
| 258 |
### Added |
| 259 |
- AIX support [#282] |
| 260 |
- `getrandom_uninit` function [#291] |
| 261 |
- `wasm64-unknown-unknown` support [#303] |
| 262 |
- tvOS and watchOS support [#317] |
| 263 |
- QNX/nto support [#325] |
| 264 |
- Support for `getrandom` syscall on NetBSD ≥ 10.0 [#331] |
| 265 |
- `RtlGenRandom` fallback for non-UWP Windows [#337] |
| 266 |
|
| 267 |
### Breaking Changes |
| 268 |
- Update MSRV to 1.36 [#291] |
| 269 |
|
| 270 |
### Fixed |
| 271 |
- Solaris/OpenBSD/Dragonfly build [#301] |
| 272 |
|
| 273 |
### Changed |
| 274 |
- Update MSRV to 1.36 [#291] |
| 275 |
- Use getentropy on Emscripten [#307] |
| 276 |
- Solaris: consistently use `/dev/random` source [#310] |
| 277 |
- Move 3ds selection above rdrand/js/custom fallback [#312] |
| 278 |
- Remove buffer zeroing from Node.js implementation [#315] |
| 279 |
- Use `open` instead of `open64` [#326] |
| 280 |
- Remove #cfg from bsd_arandom.rs [#332] |
| 281 |
- Hermit: use `sys_read_entropy` syscall [#333] |
| 282 |
- Eliminate potential panic in sys_fill_exact [#334] |
| 283 |
- rdrand: Remove checking for 0 and !0 and instead check CPU family and do a self-test [#335] |
| 284 |
- Move `__getrandom_custom` definition into a const block [#344] |
| 285 |
- Switch the custom backend to Rust ABI [#347] |
| 286 |
|
| 287 |
[#282]: https://github.com/rust-random/getrandom/pull/282 |
| 288 |
[#291]: https://github.com/rust-random/getrandom/pull/291 |
| 289 |
[#301]: https://github.com/rust-random/getrandom/pull/301 |
| 290 |
[#303]: https://github.com/rust-random/getrandom/pull/303 |
| 291 |
[#307]: https://github.com/rust-random/getrandom/pull/307 |
| 292 |
[#310]: https://github.com/rust-random/getrandom/pull/310 |
| 293 |
[#312]: https://github.com/rust-random/getrandom/pull/312 |
| 294 |
[#315]: https://github.com/rust-random/getrandom/pull/315 |
| 295 |
[#317]: https://github.com/rust-random/getrandom/pull/317 |
| 296 |
[#325]: https://github.com/rust-random/getrandom/pull/325 |
| 297 |
[#326]: https://github.com/rust-random/getrandom/pull/326 |
| 298 |
[#331]: https://github.com/rust-random/getrandom/pull/331 |
| 299 |
[#332]: https://github.com/rust-random/getrandom/pull/332 |
| 300 |
[#333]: https://github.com/rust-random/getrandom/pull/333 |
| 301 |
[#334]: https://github.com/rust-random/getrandom/pull/334 |
| 302 |
[#335]: https://github.com/rust-random/getrandom/pull/335 |
| 303 |
[#337]: https://github.com/rust-random/getrandom/pull/337 |
| 304 |
[#344]: https://github.com/rust-random/getrandom/pull/344 |
| 305 |
[#347]: https://github.com/rust-random/getrandom/pull/347 |
| 306 |
|
| 307 |
## [0.2.8] - 2022-10-20 |
| 308 |
### Changed |
| 309 |
- The [Web Cryptography API] will now be preferred on `wasm32-unknown-unknown` |
| 310 |
when using the `"js"` feature, even on Node.js [#284] [#295] |
| 311 |
|
| 312 |
### Added |
| 313 |
- Added benchmarks to track buffer initialization cost [#272] |
| 314 |
|
| 315 |
### Fixed |
| 316 |
- Use `$crate` in `register_custom_getrandom!` [#270] |
| 317 |
|
| 318 |
### Documentation |
| 319 |
- Add information about enabling `"js"` feature [#280] |
| 320 |
- Fix link to `wasm-bindgen` [#278] |
| 321 |
- Document the varied implementations for underlying randomness sources [#276] |
| 322 |
|
| 323 |
[Web Cryptography API]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API |
| 324 |
[#284]: https://github.com/rust-random/getrandom/pull/284 |
| 325 |
[#295]: https://github.com/rust-random/getrandom/pull/295 |
| 326 |
[#272]: https://github.com/rust-random/getrandom/pull/272 |
| 327 |
[#270]: https://github.com/rust-random/getrandom/pull/270 |
| 328 |
[#280]: https://github.com/rust-random/getrandom/pull/280 |
| 329 |
[#278]: https://github.com/rust-random/getrandom/pull/278 |
| 330 |
[#276]: https://github.com/rust-random/getrandom/pull/276 |
| 331 |
|
| 332 |
## [0.2.7] - 2022-06-14 |
| 333 |
### Changed |
| 334 |
- Update `wasi` dependency to `0.11` [#253] |
| 335 |
|
| 336 |
### Fixed |
| 337 |
- Use `AtomicPtr` instead of `AtomicUsize` for Strict Provenance compatibility. [#263] |
| 338 |
|
| 339 |
### Documentation |
| 340 |
- Add comments explaining use of fallback mechanisms [#257] [#260] |
| 341 |
|
| 342 |
[#263]: https://github.com/rust-random/getrandom/pull/263 |
| 343 |
[#260]: https://github.com/rust-random/getrandom/pull/260 |
| 344 |
[#253]: https://github.com/rust-random/getrandom/pull/253 |
| 345 |
[#257]: https://github.com/rust-random/getrandom/pull/257 |
| 346 |
|
| 347 |
## [0.2.6] - 2022-03-28 |
| 348 |
### Added |
| 349 |
- Nintendo 3DS (`armv6k-nintendo-3ds`) support [#248] |
| 350 |
|
| 351 |
### Changed |
| 352 |
- Retry `open` when interrupted [#252] |
| 353 |
|
| 354 |
[#248]: https://github.com/rust-random/getrandom/pull/248 |
| 355 |
[#252]: https://github.com/rust-random/getrandom/pull/252 |
| 356 |
|
| 357 |
## [0.2.5] - 2022-02-22 |
| 358 |
### Added |
| 359 |
- ESP-IDF targets (`*‑espidf`) support [#245] |
| 360 |
|
| 361 |
### Fixed |
| 362 |
- Webpack warning caused by dynamic require [#234] |
| 363 |
- Error checking on iOS for `SecRandomCopyBytes` [#244] |
| 364 |
|
| 365 |
[#234]: https://github.com/rust-random/getrandom/pull/234 |
| 366 |
[#244]: https://github.com/rust-random/getrandom/pull/244 |
| 367 |
[#245]: https://github.com/rust-random/getrandom/pull/245 |
| 368 |
|
| 369 |
## [0.2.4] - 2021-12-13 |
| 370 |
### Changed |
| 371 |
- Use explicit imports in the `js` backend [#220] |
| 372 |
- Use `/dev/urandom` on Redox instead of `rand:` [#222] |
| 373 |
- Use `NonZeroU32::new_unchecked` to convert wasi error [#233] |
| 374 |
|
| 375 |
### Added |
| 376 |
- SOLID targets (`*-kmc-solid_*`) support [#235] |
| 377 |
- Limited Hermit (`x86_64-unknown-hermit`) support [#236] |
| 378 |
|
| 379 |
[#220]: https://github.com/rust-random/getrandom/pull/220 |
| 380 |
[#222]: https://github.com/rust-random/getrandom/pull/222 |
| 381 |
[#233]: https://github.com/rust-random/getrandom/pull/233 |
| 382 |
[#235]: https://github.com/rust-random/getrandom/pull/235 |
| 383 |
[#236]: https://github.com/rust-random/getrandom/pull/236 |
| 384 |
|
| 385 |
## [0.2.3] - 2021-04-10 |
| 386 |
### Changed |
| 387 |
- Replace build.rs with link attributes. [#205] |
| 388 |
- Add support for getrandom syscall on DragonFly BSD. [#210] |
| 389 |
- Improve Node.js detection. [#215] |
| 390 |
|
| 391 |
[#205]: https://github.com/rust-random/getrandom/pull/205 |
| 392 |
[#210]: https://github.com/rust-random/getrandom/pull/210 |
| 393 |
[#215]: https://github.com/rust-random/getrandom/pull/215 |
| 394 |
|
| 395 |
## [0.2.2] - 2021-01-19 |
| 396 |
### Changed |
| 397 |
- Forward `rustc-dep-of-std` to dependencies. [#198] |
| 398 |
- Highlight feature-dependent functionality in documentation using the `doc_cfg` feature. [#200] |
| 399 |
|
| 400 |
[#198]: https://github.com/rust-random/getrandom/pull/198 |
| 401 |
[#200]: https://github.com/rust-random/getrandom/pull/200 |
| 402 |
|
| 403 |
## [0.2.1] - 2021-01-03 |
| 404 |
### Changed |
| 405 |
- Update `cfg-if` to v1.0. [#166] |
| 406 |
- Update `wasi` to v0.10. [#167] |
| 407 |
|
| 408 |
### Fixed |
| 409 |
- Multithreaded WASM support. [#165] |
| 410 |
|
| 411 |
### Removed |
| 412 |
- Windows XP support. [#177] |
| 413 |
- Direct `stdweb` support. [#178] |
| 414 |
- CloudABI support. [#184] |
| 415 |
|
| 416 |
[#165]: https://github.com/rust-random/getrandom/pull/165 |
| 417 |
[#166]: https://github.com/rust-random/getrandom/pull/166 |
| 418 |
[#167]: https://github.com/rust-random/getrandom/pull/167 |
| 419 |
[#177]: https://github.com/rust-random/getrandom/pull/177 |
| 420 |
[#178]: https://github.com/rust-random/getrandom/pull/178 |
| 421 |
[#184]: https://github.com/rust-random/getrandom/pull/184 |
| 422 |
|
| 423 |
## [0.2.0] - 2020-09-10 |
| 424 |
### Features for using getrandom on unsupported targets |
| 425 |
|
| 426 |
The following (off by default) Cargo features have been added: |
| 427 |
- `"rdrand"` - use the RDRAND instruction on `no_std` `x86`/`x86_64` targets [#133] |
| 428 |
- `"js"` - use JavaScript calls on `wasm32-unknown-unknown` [#149] |
| 429 |
- Replaces the `stdweb` and `wasm-bindgen` features (which are removed) |
| 430 |
- `"custom"` - allows a user to specify a custom implementation [#109] |
| 431 |
|
| 432 |
### Breaking Changes |
| 433 |
- Unsupported targets no longer compile [#107] |
| 434 |
- Change/Add `Error` constants [#120] |
| 435 |
- Only impl `std` traits when the `"std"` Cargo feature is specified [#106] |
| 436 |
- Remove official support for Hermit, L4Re, and UEFI [#133] |
| 437 |
- Remove optional `"log"` dependency [#131] |
| 438 |
- Update minimum supported Linux kernel to 2.6.32 [#153] |
| 439 |
- Update MSRV to 1.34 [#159] |
| 440 |
|
| 441 |
[#106]: https://github.com/rust-random/getrandom/pull/106 |
| 442 |
[#107]: https://github.com/rust-random/getrandom/pull/107 |
| 443 |
[#109]: https://github.com/rust-random/getrandom/pull/109 |
| 444 |
[#120]: https://github.com/rust-random/getrandom/pull/120 |
| 445 |
[#131]: https://github.com/rust-random/getrandom/pull/131 |
| 446 |
[#133]: https://github.com/rust-random/getrandom/pull/133 |
| 447 |
[#149]: https://github.com/rust-random/getrandom/pull/149 |
| 448 |
[#153]: https://github.com/rust-random/getrandom/pull/153 |
| 449 |
[#159]: https://github.com/rust-random/getrandom/pull/159 |
| 450 |
|
| 451 |
## [0.1.16] - 2020-12-31 |
| 452 |
### Changed |
| 453 |
- Update `cfg-if` to v1.0. [#173] |
| 454 |
- Implement `std::error::Error` for the `Error` type on additional targets. [#169] |
| 455 |
|
| 456 |
### Fixed |
| 457 |
- Multithreaded WASM support. [#171] |
| 458 |
|
| 459 |
[#173]: https://github.com/rust-random/getrandom/pull/173 |
| 460 |
[#171]: https://github.com/rust-random/getrandom/pull/171 |
| 461 |
[#169]: https://github.com/rust-random/getrandom/pull/169 |
| 462 |
|
| 463 |
## [0.1.15] - 2020-09-10 |
| 464 |
### Changed |
| 465 |
- Added support for Internet Explorer 11 [#139] |
| 466 |
- Fix Webpack require warning with `wasm-bindgen` [#137] |
| 467 |
|
| 468 |
[#137]: https://github.com/rust-random/getrandom/pull/137 |
| 469 |
[#139]: https://github.com/rust-random/getrandom/pull/139 |
| 470 |
|
| 471 |
## [0.1.14] - 2020-01-07 |
| 472 |
### Changed |
| 473 |
- Remove use of spin-locks in the `use_file` module. [#125] |
| 474 |
- Update `wasi` to v0.9. [#126] |
| 475 |
- Do not read errno value on DragonFlyBSD to fix compilation failure. [#129] |
| 476 |
|
| 477 |
[#125]: https://github.com/rust-random/getrandom/pull/125 |
| 478 |
[#126]: https://github.com/rust-random/getrandom/pull/126 |
| 479 |
[#129]: https://github.com/rust-random/getrandom/pull/129 |
| 480 |
|
| 481 |
## [0.1.13] - 2019-08-25 |
| 482 |
### Added |
| 483 |
- VxWorks targets support. [#86] |
| 484 |
|
| 485 |
### Changed |
| 486 |
- If zero-length slice is passed to the `getrandom` function, always return |
| 487 |
`Ok(())` immediately without doing any calls to the underlying operating |
| 488 |
system. [#104] |
| 489 |
- Use the `kern.arandom` sysctl on NetBSD. [#115] |
| 490 |
|
| 491 |
### Fixed |
| 492 |
- Bump `cfg-if` minimum version from 0.1.0 to 0.1.2. [#112] |
| 493 |
- Typos and bad doc links. [#117] |
| 494 |
|
| 495 |
[#86]: https://github.com/rust-random/getrandom/pull/86 |
| 496 |
[#104]: https://github.com/rust-random/getrandom/pull/104 |
| 497 |
[#112]: https://github.com/rust-random/getrandom/pull/112 |
| 498 |
[#115]: https://github.com/rust-random/getrandom/pull/115 |
| 499 |
[#117]: https://github.com/rust-random/getrandom/pull/117 |
| 500 |
|
| 501 |
## [0.1.12] - 2019-08-18 |
| 502 |
### Changed |
| 503 |
- Update wasi dependency from v0.5 to v0.7. [#100] |
| 504 |
|
| 505 |
[#100]: https://github.com/rust-random/getrandom/pull/100 |
| 506 |
|
| 507 |
## [0.1.11] - 2019-08-25 |
| 508 |
### Fixed |
| 509 |
- Implement `std`-dependent traits for selected targets even if `std` |
| 510 |
feature is disabled. (backward compatibility with v0.1.8) [#96] |
| 511 |
|
| 512 |
[#96]: https://github.com/rust-random/getrandom/pull/96 |
| 513 |
|
| 514 |
## [0.1.10] - 2019-08-18 [YANKED] |
| 515 |
### Changed |
| 516 |
- Use the dummy implementation on `wasm32-unknown-unknown` even with the |
| 517 |
disabled `dummy` feature. [#90] |
| 518 |
|
| 519 |
### Fixed |
| 520 |
- Fix CSP error for `wasm-bindgen`. [#92] |
| 521 |
|
| 522 |
[#90]: https://github.com/rust-random/getrandom/pull/90 |
| 523 |
[#92]: https://github.com/rust-random/getrandom/pull/92 |
| 524 |
|
| 525 |
## [0.1.9] - 2019-08-14 [YANKED] |
| 526 |
### Changed |
| 527 |
- Remove `std` dependency for opening and reading files. [#58] |
| 528 |
- Use `wasi` instead of `libc` on WASI target. [#64] |
| 529 |
- By default emit a compile-time error when built for an unsupported target. |
| 530 |
This behaviour can be disabled by using the `dummy` feature. [#71] |
| 531 |
|
| 532 |
### Added |
| 533 |
- Add support for UWP targets. [#69] |
| 534 |
- Add unstable `rustc-dep-of-std` feature. [#78] |
| 535 |
|
| 536 |
[#58]: https://github.com/rust-random/getrandom/pull/58 |
| 537 |
[#64]: https://github.com/rust-random/getrandom/pull/64 |
| 538 |
[#69]: https://github.com/rust-random/getrandom/pull/69 |
| 539 |
[#71]: https://github.com/rust-random/getrandom/pull/71 |
| 540 |
[#78]: https://github.com/rust-random/getrandom/pull/78 |
| 541 |
|
| 542 |
## [0.1.8] - 2019-07-29 |
| 543 |
### Changed |
| 544 |
- Explicitly specify types to arguments of 'libc::syscall'. [#74] |
| 545 |
|
| 546 |
[#74]: https://github.com/rust-random/getrandom/pull/74 |
| 547 |
|
| 548 |
## [0.1.7] - 2019-07-29 |
| 549 |
### Added |
| 550 |
- Support for hermit and l4re. [#61] |
| 551 |
- `Error::raw_os_error` method, `Error::INTERNAL_START` and |
| 552 |
`Error::CUSTOM_START` constants. Use `libc` for retrieving OS error descriptions. [#54] |
| 553 |
|
| 554 |
### Changed |
| 555 |
- Remove `lazy_static` dependency and use custom structures for lock-free |
| 556 |
initialization. [#51] [#52] |
| 557 |
- Try `getrandom()` first on FreeBSD. [#57] |
| 558 |
|
| 559 |
### Removed |
| 560 |
- Bitrig support. [#56] |
| 561 |
|
| 562 |
### Deprecated |
| 563 |
- `Error::UNKNOWN`, `Error::UNAVAILABLE`. [#54] |
| 564 |
|
| 565 |
[#51]: https://github.com/rust-random/getrandom/pull/51 |
| 566 |
[#52]: https://github.com/rust-random/getrandom/pull/52 |
| 567 |
[#54]: https://github.com/rust-random/getrandom/pull/54 |
| 568 |
[#56]: https://github.com/rust-random/getrandom/pull/56 |
| 569 |
[#57]: https://github.com/rust-random/getrandom/pull/57 |
| 570 |
[#61]: https://github.com/rust-random/getrandom/pull/61 |
| 571 |
|
| 572 |
## [0.1.6] - 2019-06-30 |
| 573 |
### Changed |
| 574 |
- Minor change of RDRAND AMD bug handling. [#48] |
| 575 |
|
| 576 |
[#48]: https://github.com/rust-random/getrandom/pull/48 |
| 577 |
|
| 578 |
## [0.1.5] - 2019-06-29 |
| 579 |
### Fixed |
| 580 |
- Use shared `File` instead of shared file descriptor. [#44] |
| 581 |
- Workaround for RDRAND hardware bug present on some AMD CPUs. [#43] |
| 582 |
|
| 583 |
### Changed |
| 584 |
- Try `getentropy` and then fallback to `/dev/random` on macOS. [#38] |
| 585 |
|
| 586 |
[#38]: https://github.com/rust-random/getrandom/issues/38 |
| 587 |
[#43]: https://github.com/rust-random/getrandom/pull/43 |
| 588 |
[#44]: https://github.com/rust-random/getrandom/issues/44 |
| 589 |
|
| 590 |
## [0.1.4] - 2019-06-28 |
| 591 |
### Added |
| 592 |
- Add support for `x86_64-unknown-uefi` target by using RDRAND with CPUID |
| 593 |
feature detection. [#30] |
| 594 |
|
| 595 |
### Fixed |
| 596 |
- Fix long buffer issues on Windows and Linux. [#31] [#32] |
| 597 |
- Check `EPERM` in addition to `ENOSYS` on Linux. [#37] |
| 598 |
|
| 599 |
### Changed |
| 600 |
- Improve efficiency by sharing file descriptor across threads. [#13] |
| 601 |
- Remove `cloudabi`, `winapi`, and `fuchsia-cprng` dependencies. [#40] |
| 602 |
- Improve RDRAND implementation. [#24] |
| 603 |
- Don't block during syscall detection on Linux. [#26] |
| 604 |
- Increase consistency with libc implementation on FreeBSD. [#36] |
| 605 |
- Apply `rustfmt`. [#39] |
| 606 |
|
| 607 |
[#30]: https://github.com/rust-random/getrandom/pull/30 |
| 608 |
[#13]: https://github.com/rust-random/getrandom/issues/13 |
| 609 |
[#40]: https://github.com/rust-random/getrandom/pull/40 |
| 610 |
[#26]: https://github.com/rust-random/getrandom/pull/26 |
| 611 |
[#24]: https://github.com/rust-random/getrandom/pull/24 |
| 612 |
[#39]: https://github.com/rust-random/getrandom/pull/39 |
| 613 |
[#36]: https://github.com/rust-random/getrandom/pull/36 |
| 614 |
[#31]: https://github.com/rust-random/getrandom/issues/31 |
| 615 |
[#32]: https://github.com/rust-random/getrandom/issues/32 |
| 616 |
[#37]: https://github.com/rust-random/getrandom/issues/37 |
| 617 |
|
| 618 |
## [0.1.3] - 2019-05-15 |
| 619 |
- Update for `wasm32-unknown-wasi` being renamed to `wasm32-wasi`, and for |
| 620 |
WASI being categorized as an OS. |
| 621 |
|
| 622 |
## [0.1.2] - 2019-04-06 |
| 623 |
- Add support for `wasm32-unknown-wasi` target. |
| 624 |
|
| 625 |
## [0.1.1] - 2019-04-05 |
| 626 |
- Enable std functionality for CloudABI by default. |
| 627 |
|
| 628 |
## [0.1.0] - 2019-03-23 |
| 629 |
Publish initial implementation. |
| 630 |
|
| 631 |
## [0.0.0] - 2019-01-19 |
| 632 |
Publish an empty template library. |
| 633 |
|
| 634 |
[0.3.4]: https://github.com/rust-random/getrandom/compare/v0.3.3...v0.3.4 |
| 635 |
[0.3.3]: https://github.com/rust-random/getrandom/compare/v0.3.2...v0.3.3 |
| 636 |
[0.3.2]: https://github.com/rust-random/getrandom/compare/v0.3.1...v0.3.2 |
| 637 |
[0.3.1]: https://github.com/rust-random/getrandom/compare/v0.3.0...v0.3.1 |
| 638 |
[0.3.0]: https://github.com/rust-random/getrandom/compare/v0.2.15...v0.3.0 |
| 639 |
[0.2.16]: https://github.com/rust-random/getrandom/compare/v0.2.15...v0.2.16 |
| 640 |
[0.2.15]: https://github.com/rust-random/getrandom/compare/v0.2.14...v0.2.15 |
| 641 |
[0.2.14]: https://github.com/rust-random/getrandom/compare/v0.2.13...v0.2.14 |
| 642 |
[0.2.13]: https://github.com/rust-random/getrandom/compare/v0.2.12...v0.2.13 |
| 643 |
[0.2.12]: https://github.com/rust-random/getrandom/compare/v0.2.11...v0.2.12 |
| 644 |
[0.2.11]: https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11 |
| 645 |
[0.2.10]: https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10 |
| 646 |
[0.2.9]: https://github.com/rust-random/getrandom/compare/v0.2.8...v0.2.9 |
| 647 |
[0.2.8]: https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8 |
| 648 |
[0.2.7]: https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 |
| 649 |
[0.2.6]: https://github.com/rust-random/getrandom/compare/v0.2.5...v0.2.6 |
| 650 |
[0.2.5]: https://github.com/rust-random/getrandom/compare/v0.2.4...v0.2.5 |
| 651 |
[0.2.4]: https://github.com/rust-random/getrandom/compare/v0.2.3...v0.2.4 |
| 652 |
[0.2.3]: https://github.com/rust-random/getrandom/compare/v0.2.2...v0.2.3 |
| 653 |
[0.2.2]: https://github.com/rust-random/getrandom/compare/v0.2.1...v0.2.2 |
| 654 |
[0.2.1]: https://github.com/rust-random/getrandom/compare/v0.2.0...v0.2.1 |
| 655 |
[0.2.0]: https://github.com/rust-random/getrandom/compare/v0.1.16...v0.2.0 |
| 656 |
[0.1.16]: https://github.com/rust-random/getrandom/compare/v0.1.15...v0.1.16 |
| 657 |
[0.1.15]: https://github.com/rust-random/getrandom/compare/v0.1.14...v0.1.15 |
| 658 |
[0.1.14]: https://github.com/rust-random/getrandom/compare/v0.1.13...v0.1.14 |
| 659 |
[0.1.13]: https://github.com/rust-random/getrandom/compare/v0.1.12...v0.1.13 |
| 660 |
[0.1.12]: https://github.com/rust-random/getrandom/compare/v0.1.11...v0.1.12 |
| 661 |
[0.1.11]: https://github.com/rust-random/getrandom/compare/v0.1.10...v0.1.11 |
| 662 |
[0.1.10]: https://github.com/rust-random/getrandom/compare/v0.1.9...v0.1.10 |
| 663 |
[0.1.9]: https://github.com/rust-random/getrandom/compare/v0.1.8...v0.1.9 |
| 664 |
[0.1.8]: https://github.com/rust-random/getrandom/compare/v0.1.7...v0.1.8 |
| 665 |
[0.1.7]: https://github.com/rust-random/getrandom/compare/v0.1.6...v0.1.7 |
| 666 |
[0.1.6]: https://github.com/rust-random/getrandom/compare/v0.1.5...v0.1.6 |
| 667 |
[0.1.5]: https://github.com/rust-random/getrandom/compare/v0.1.4...v0.1.5 |
| 668 |
[0.1.4]: https://github.com/rust-random/getrandom/compare/v0.1.3...v0.1.4 |
| 669 |
[0.1.3]: https://github.com/rust-random/getrandom/compare/v0.1.2...v0.1.3 |
| 670 |
[0.1.2]: https://github.com/rust-random/getrandom/compare/v0.1.1...v0.1.2 |
| 671 |
[0.1.1]: https://github.com/rust-random/getrandom/compare/v0.1.0...v0.1.1 |
| 672 |
[0.1.0]: https://github.com/rust-random/getrandom/compare/v0.0.0...v0.1.0 |
| 673 |
[0.0.0]: https://github.com/rust-random/getrandom/releases/tag/v0.0.0 |