This pull request is trivial and just adds a helper function new_random for EphemeralSecret, StaticSecret and ReusableSecret that just delegates to Self::new(&mut rand_core::OsRng), thus solving #85.
This feature is hidden behind the getrandom feature (that enables rand_core/getrandom).
There are no added tests, because the implementation is trivial.
This pull request is trivial and just adds a helper function
new_random
forEphemeralSecret
,StaticSecret
andReusableSecret
that just delegates toSelf::new(&mut rand_core::OsRng)
, thus solving #85.This feature is hidden behind the
getrandom
feature (that enablesrand_core/getrandom
).There are no added tests, because the implementation is trivial.