#include <randomizer.h>
Public Methods | |
RandomizerFeistel (NodeCount noOfNodes) | |
The constructor. | |
NodeID | operator() (NodeID nodeID) const |
The bijection. | |
Private Methods | |
void | initRandomNumbers () |
Initializes the table of random numbers. | |
Private Attributes | |
NodeID | _sqRoot |
The next integer >= the square root of the given number of nodes. | |
int | randomNumbers [_noOfIterations][_maxSqRoot] |
The table of random numbers (used by the Feistel permutations). | |
Static Private Attributes | |
const int | _noOfIterations = 2 |
The number of performed Feistel permutations. | |
const int | _maxSqRoot = 0x10000 |
The maximum size of _sqRoot. |
Definition at line 66 of file randomizer.h.
|
The constructor. A bijection over {0,...,r^2-1} is initialized, whereat r is the next integer greater than or equal to the square root of a given n. Definition at line 74 of file randomizer.h. References _sqRoot, and initRandomNumbers(). |