pub const fn standard_affine_shift(q: u128, i: u128) -> u128
Expand description

Returns a pseudo-random integer modulo q, unique for every i between 0 and q. This acts suitably well as a random number generator for several modular arithmetic operations, including randomly searching for quadratic (non) residues.