Browse Source

utils: simplify qnr

Lennart Braun 2 years ago
parent
commit
787ec2ee3d
1 changed files with 1 additions and 1 deletions
  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)