We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Sized
1 parent fbb4321 commit 28b6e0dCopy full SHA for 28b6e0d
elliptic-curve/src/scalar/nonzero.rs
@@ -47,7 +47,7 @@ where
47
C: CurveArithmetic,
48
{
49
/// Generate a random `NonZeroScalar`.
50
- pub fn random<R: CryptoRng>(mut rng: &mut R) -> Self {
+ pub fn random<R: CryptoRng + ?Sized>(mut rng: &mut R) -> Self {
51
// Use rejection sampling to eliminate zero values.
52
// While this method isn't constant-time, the attacker shouldn't learn
53
// anything about unrelated outputs so long as `rng` is a secure `CryptoRng`.
0 commit comments