A pseudorandom number generator using Legendre Symbols

The Pólya-Vinogradov inequality and the distribution of quadratic residues mod p