Explorar o código

utils: simplify qnr

Lennart Braun %!s(int64=3) %!d(string=hai) anos
pai
achega
787ec2ee3d
Modificáronse 1 ficheiros con 1 adicións e 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)