Skip to content

Commit 61f6839

Browse files
authored
elliptic-curve: cleanup TODOs (#1823)
Those TODOs should have been removed in #1774
1 parent 829328e commit 61f6839

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

elliptic-curve/src/scalar/nonzero.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ where
5252
// While this method isn't constant-time, the attacker shouldn't learn
5353
// anything about unrelated outputs so long as `rng` is a secure `CryptoRng`.
5454
loop {
55-
// TODO: remove after `Field::random` switches to `&mut impl RngCore`
5655
if let Some(result) = Self::new(Field::random(rng)).into() {
5756
break result;
5857
}
@@ -65,7 +64,6 @@ where
6564
// While this method isn't constant-time, the attacker shouldn't learn
6665
// anything about unrelated outputs so long as `rng` is a secure `CryptoRng`.
6766
loop {
68-
// TODO: remove after `Field::random` switches to `&mut impl RngCore`
6967
if let Some(result) = Self::new(Scalar::<C>::try_from_rng(rng)?).into() {
7068
break Ok(result);
7169
}

0 commit comments

Comments
 (0)