From 68bd19cb320b2023aa892c2de15b419edf3f3086 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 17 Oct 2002 16:32:28 +0000 Subject: bug fixes and KAT for X9.17 RNG git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@11 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rng.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rng.h') diff --git a/rng.h b/rng.h index f4afaeb..5b0998d 100644 --- a/rng.h +++ b/rng.h @@ -32,8 +32,8 @@ private: class X917RNG : public RandomNumberGenerator { public: - // cipher will be deleted by destructor - X917RNG(BlockTransformation *cipher, const byte *seed); + // cipher will be deleted by destructor, deterministicTimeVector = 0 means obtain time vector from system + X917RNG(BlockTransformation *cipher, const byte *seed, unsigned long deterministicTimeVector = 0); byte GenerateByte(); @@ -43,6 +43,7 @@ private: SecByteBlock dtbuf; // buffer for enciphered timestamp SecByteBlock randseed, randbuf; int randbuf_counter; // # of unused bytes left in randbuf + unsigned long m_deterministicTimeVector; }; /** This class implements Maurer's Universal Statistical Test for Random Bit Generators -- cgit v1.2.1