Update Rust crate getrandom to 0.3.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
getrandom | dependencies | minor |
0.2.14 -> 0.3.0
|
Release Notes
rust-random/getrandom (getrandom)
v0.3.2
Added
-
efi_rng
opt-in backend #570 -
linux_raw
opt-in backend #572 -
.cargo/config.toml
example in the crate-level docs #591 -
getrandom_test_linux_without_fallback
configuration flag to test that file fallback is not triggered in thelinux_android_with_fallback
backend #605 - Built-in support for
*-linux-none
targets #618 - Cygwin support #626
Changed
- Update
wasi
dependency to v0.14 #594 - Add
#[inline]
attribute to the inner functions #596 - Update WASI and Emscripten links in the crate-level docs #597
- Do not use
dlsym
on MUSL targets in thelinux_android_with_fallback
backend #602 - Remove
linux_android.rs
and usegetrandom.rs
instead #603 - Always use
RtlGenRandom
on Windows targets when compiling with pre-1.78 Rust #610 - Internal representation of the
Error
type #614 - Remove
windows-targets
dependency and use [raw-dylib
][raw-dylib] directly #627
Removed
-
Error::INTERNAL_START
andError::CUSTOM_START
associated constants #614
v0.3.1
Fixed
- Build error on Android #588
v0.3.0
Breaking Changes
Changed
- Bump MSRV to 1.63 #542
- Rename
getrandom
andgetrandom_uninit
functions tofill
andfill_uninit
respectively #532
Removed
-
wasm32-wasi
target support (usewasm32-wasip1
orwasm32-wasip2
instead) #499 -
linux_disable_fallback
,rdrand
,js
,test-in-browser
, andcustom
crate features in favor of configuration flags #504 -
register_custom_getrandom!
macro #504 - Implementation of
From<NonZeroU32>
forError
andError::code
method #507 - Internet Explorer 11 support #554
- Target-specific assocciated
Error
constants #562
Changed
- Use
ProcessPrng
on Windows 10 and up, and useRtlGenRandom
on older Windows versions #415 - Do not use locale-specific
strerror_r
for retrieving error code descriptions #440 - Avoid assuming
usize
is the native word size in therdrand
backend #442 - Do not read from
errno
whenlibc
did not indicate error on Solaris #448 - Switch from
libpthread
's mutex tofutex
on Linux and tonanosleep
-based wait loop on other targets in theuse_file
backend #490 - Do not retry on
EAGAIN
while polling/dev/random
on Linux #522 - Remove separate codepath for Node.js in the
wasm_js
backend (bumps minimum supported Node.js version to v19) #557 - Use
js_namespace
in thewasm_js
backend #559
Added
-
wasm32-wasip1
andwasm32-wasip2
support #499 -
getrandom_backend
configuration flag for selection of opt-in backends #504 -
Error::new_custom
method #507 -
rndr
opt-in backend #512 - Automatic MemorySanitizer support #521 #571
-
u32
andu64
functions for generating random values of the respective type #544 -
wasm32v1-none
support in thewasm_js
backend #560 -
wasm_js
crate feature which allows users to enable thewasm_js
opt-in backend #574
Fixed
- NetBSD fallback code based on
KERN_ARND
#555
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot