Explorar el Código

utils: simplify qnr

Lennart Braun hace 2 años
padre
commit
787ec2ee3d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/src/field.rs

+ 1 - 1
utils/src/field.rs

@@ -90,7 +90,7 @@ impl LegendreSymbol for Fp {
 
     /// 7 is not a square mod p.
     fn get_non_random_qnr() -> Self {
-        Self::ONE + Self::ONE + Self::ONE + Self::ONE + Self::ONE + Self::ONE + Self::ONE
+        Self::from_u128(7)
     }
 
     /// Compute the Legendre Symbol (p/a)