#include <randomizer.h>
Public Methods | |
| RandomizerLinearCongruence (NodeCount noOfNodes) | |
| The constructor. | |
| NodeID | operator() (NodeID nodeID) const |
| The bijection. | |
Private Methods | |
| void | determineNextPrime (NodeCount noOfNodes) |
| Determines the next prime number >= the given number of nodes. | |
| bool | isPrime (NodeCount p) const |
| Returns true iff the given number is prime. | |
Private Attributes | |
| NodeCount | _prime |
| The next prime number >= the given number of nodes. | |
Definition at line 18 of file randomizer.h.
|
|
The constructor. A bijection over {0,...p-1} is initialized, whereat p is the next prime number greater than or equal to a given n. Definition at line 26 of file randomizer.h. References determineNextPrime(). |
1.2.17