9 NAMESPACE_BEGIN(CryptoPP)
19 void GenerateBlock(byte *output,
size_t size);
21 word32 GetSeed() {
return seed;}
26 static const word32 m;
27 static const word32 q;
28 static const word16 a;
29 static const word16 r;
46 SecByteBlock randseed, m_lastBlock, m_deterministicTimeVector;
58 size_t Put2(
const byte *inString,
size_t length,
int messageEnd,
bool blocking);
62 unsigned int BytesNeeded()
const {
return n >= (Q+K) ? 0 : Q+K-n;}
66 double GetTestValue()
const;
69 enum {L=8, V=256, Q=2000, K=2000};
RNG derived from ANSI X9.17 Appendix C.
linear congruential generator
interface for random number generators
size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking)
input multiple bytes for blocking or non-blocking processing
This class implements Maurer's Universal Statistical Test for Random Bit Generators it is intended fo...
virtual void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword length)
generate random bytes as input to a BufferedTransformation