summaryrefslogtreecommitdiff
path: root/rng.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
commitf278895908e663a6a5a2c1f63e5523c5004f5d20 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /rng.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'rng.cpp')
-rw-r--r--rng.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rng.cpp b/rng.cpp
index dfcd2629..2cd5db40 100644
--- a/rng.cpp
+++ b/rng.cpp
@@ -1,6 +1,7 @@
// rng.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+
#include "rng.h"
#include <time.h>
@@ -51,6 +52,8 @@ byte LC_RNG::GenerateByte()
// ********************************************************
+#ifndef CRYPTOPP_IMPORTS
+
X917RNG::X917RNG(BlockTransformation *c, const byte *seed, unsigned long deterministicTimeVector)
: cipher(c),
S(cipher->BlockSize()),
@@ -109,6 +112,8 @@ byte X917RNG::GenerateByte()
return(randbuf[--randbuf_counter]);
}
+#endif
+
MaurerRandomnessTest::MaurerRandomnessTest()
: sum(0.0), n(0)
{