#include <trng.h>
Inheritance diagram for TRNG::ParkMiller:
Public Methods | |
ParkMiller (long a_=16807l, long modulus_=2147483647l, long seed_=0l) | |
constructor. More... |
is the actual pseudo random number. The modulus
has to be a prime smaller than
and
a generating element of the multiplicative group modulo
to generate a maxmal length period.
Definition at line 1065 of file trng.h.
|
The constructor's default values implement a modified random number generator proposed by Park and Miller. This generator has a period of
|