Class PseudoRandomNumberGenerator
Defined in File distributiongenerator.h
Page Contents
Class Documentation
-
class lbcrypto::PseudoRandomNumberGenerator
PseudoRandomNumberGenerator provides the PRNG capability to all random distribution generators in OpenFHE. The security of Ring Learning With Errors (used for all crypto capabilities in OpenFHE) depends on the randomness of uniform, ternary, and Gaussian distributions, which derive their randomness from the PRNG.
Public Static Functions
-
static void InitPRNGEngine(const std::string &libPath = std::string())
InitPRNGEngine() initializes the PRNG generator.
Note
this function should be called at the beginning of main() if an external library to be used and prints a trace in this case. There is no trace for the built-in PRNG
-
static void InitPRNGEngine(const std::string &libPath = std::string())