Function libbgs::util::find_nonresidue
source · pub fn find_nonresidue<const P: u128>() -> u128
Expand description
Returns a quadratic non-residue modulo p
.
That is, it returns an integer $a \in \mathbb{Z} / p\mathbb{Z}$ such that there is no $x$
satisfying $x^2 = a \mod p$.