#include <RandomSource.h>
Public Member Functions | |
RandomSource (void) | |
~RandomSource (void) | |
BYTE | getByte (void) |
std::vector< BYTE > | getBytes (unsigned int n) |
BitString | getBits (unsigned int n) |
bool | getBool (void) |
unsigned long | getValue (unsigned long n) |
Private Attributes | |
unsigned int | RandomBytePos |
BYTE | RandomByte |
FILE * | RandomInput |
|
|
|
|
|
get n random bits
|
|
get a boolean value
|
|
get a random byte
|
|
get n random bytes
|
|
get a random value
|
|
|
|
|
|
determines the random input - is either opened file pointer to /dev/urandom or NULL (the rand() function is then used as random source) |