29 #ifndef RANDOM_PROVIDER_BASE_HEADER_GUARD
30 #define RANDOM_PROVIDER_BASE_HEADER_GUARD
48 template <
typename T_Impl>
94 #endif//RANDOM_PROVIDER_BASE_HEADER_GUARD
BigInteger GetMaxLengthRandomPrime(const size_t &numberOfBits)
Generates a random prime, guaranteed to have numberOfBits length.
Implementation of class RandomProviderBase. To be included in random_provider_base.h.
T_Impl::RandomGeneratorState randomGeneratorState
Implementation-defined random generator state.
BigInteger GetRandomInteger(const size_t numberOfBits)
Generates a random integer having at most numberOfBits bits.
Template class which masks various RandomProvider implementations and provides a common interface tha...
~RandomProviderBase()
Destructor (private, Singleton Pattern)
RandomProviderBase operator=(RandomProviderBase< T_Impl > const &)
Copy assignment operator - not implemented.
unsigned int randomSeed
Random seed required for the random generator state initialization.
friend T_Impl
The random provider implementation requires access to the underlying data.
static RandomProviderBase< T_Impl > & GetInstance()
Returns a reference to the singleton.