summaryrefslogtreecommitdiff
path: root/osrng.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-29 10:50:42 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-29 10:50:42 +0000
commit33be6846c06ec935180c97fa9811758368b5f097 (patch)
tree93666c00fa523772281a62290e27b6ebcb8f3e55 /osrng.h
parentce8e106147f7697285ef740dde39541f4f7e7187 (diff)
downloadcryptopp-33be6846c06ec935180c97fa9811758368b5f097.tar.gz
fix possible error during DLL startup self-test due to calling functions in ADVAPI32.DLL from DllMain() (http://sourceforge.net/apps/trac/cryptopp/ticket/4)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@513 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'osrng.h')
-rw-r--r--osrng.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/osrng.h b/osrng.h
index eb4e6e2..9192616 100644
--- a/osrng.h
+++ b/osrng.h
@@ -96,8 +96,8 @@ class AutoSeededX917RNG : public RandomNumberGenerator, public NotCopyable
{
public:
//! use blocking to choose seeding with BlockingRng or NonblockingRng. the parameter is ignored if only one of these is available
- explicit AutoSeededX917RNG(bool blocking = false)
- {Reseed(blocking);}
+ explicit AutoSeededX917RNG(bool blocking = false, bool autoSeed = true)
+ {if (autoSeed) Reseed(blocking);}
void Reseed(bool blocking = false, const byte *additionalEntropy = NULL, size_t length = 0);
// exposed for testing
void Reseed(const byte *key, size_t keylength, const byte *seed, const byte *timeVector);