We've had questions about when Rand will reach 1.0. We're not there yet, but it is still worth discussing the dependency on getrandom.
From memory & quick skim the only part of the API which is affected by getrandom is rand_core::Error, and only in two ways:
Potential solutions:
- Stabilise
getrandom 1.0 soon? Seems unlikely?
- A separate crate just for
Error — perhaps viable but definitely not desirable
- Use the promise above and deprecate that
impl, forcing users to rely on getrandom::Error::code() -> NonZeroU32 and impl From<NonZeroU32> for Error
CC @vks @newpavlov
We've had questions about when Rand will reach 1.0. We're not there yet, but it is still worth discussing the dependency on
getrandom.From memory & quick skim the only part of the API which is affected by
getrandomisrand_core::Error, and only in two ways:getrandom::Error. This doesn't really requiregetrandomto be 1.0 so long as there is a stability promise affecting these.impl From<getrandom::Error> for Error, which thus pinsrand_coreto a singlegetrandommajor-minor version.Potential solutions:
getrandom1.0 soon? Seems unlikely?Error— perhaps viable but definitely not desirableimpl, forcing users to rely ongetrandom::Error::code() -> NonZeroU32andimpl From<NonZeroU32> for ErrorCC @vks @newpavlov