MTToolBox
0.2.10
|
Checks if a pseudo random number generator is GF(2)-linear. More...
#include <TestLinearity.hpp>
Public Member Functions | |
bool | operator() (const EquidistributionCalculatable< U, V > &generator) |
Checks if generator is GF(2)-linear. More... | |
Checks if a pseudo random number generator is GF(2)-linear.
This class checks if a pseudo random number generator is GF(2)-linear. The pseudo random number generator to be tested should be sub class of EquidistributionCalculatable. Failing the test means the generator is not GF(2)-linear, but passing the test does not assure the generator is GF(2)-linear.
U | type of output of the generator, should be unsigned number. |
V | type of output of parameter generator |
|
inline |
Checks if generator is GF(2)-linear.
generator | pseudorandom number generator to be tested |
References MTToolBox::EquidistributionCalculatable< U, V >::clone(), and MTToolBox::AbstractGenerator< U >::seed().