From 785e635bbebe548392929ca326298e1924a44493 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 18 Apr 2025 17:15:09 +0000 Subject: [PATCH] elliptic-curve: cleanup TODOs --- elliptic-curve/src/scalar/nonzero.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 06e39b4de..4d2e4c51e 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -52,7 +52,6 @@ where // While this method isn't constant-time, the attacker shouldn't learn // anything about unrelated outputs so long as `rng` is a secure `CryptoRng`. loop { - // TODO: remove after `Field::random` switches to `&mut impl RngCore` if let Some(result) = Self::new(Field::random(rng)).into() { break result; } @@ -65,7 +64,6 @@ where // While this method isn't constant-time, the attacker shouldn't learn // anything about unrelated outputs so long as `rng` is a secure `CryptoRng`. loop { - // TODO: remove after `Field::random` switches to `&mut impl RngCore` if let Some(result) = Self::new(Scalar::::try_from_rng(rng)?).into() { break Ok(result); }