summaryrefslogtreecommitdiff
path: root/osrng.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 00:41:11 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 00:41:11 +0000
commit4e8eb62f75b36bb0ab70111c321fb3d338b1ea83 (patch)
treed58902f599525aea100f318e278fb754f103b20a /osrng.h
parentda8fd0df514d147efecd64e0052e563f55fea445 (diff)
downloadcryptopp-4e8eb62f75b36bb0ab70111c321fb3d338b1ea83.tar.gz
clarify comments
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@320 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'osrng.h')
-rw-r--r--osrng.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/osrng.h b/osrng.h
index c860cb2..448a905 100644
--- a/osrng.h
+++ b/osrng.h
@@ -63,7 +63,7 @@ protected:
#ifdef BLOCKING_RNG_AVAILABLE
-//! encapsulate /dev/random
+//! encapsulate /dev/random, or /dev/srandom on OpenBSD
class CRYPTOPP_DLL BlockingRng : public RandomNumberGenerator
{
public:
@@ -85,7 +85,7 @@ CRYPTOPP_DLL void CRYPTOPP_API OS_GenerateRandomBlock(bool blocking, byte *outpu
class CRYPTOPP_DLL AutoSeededRandomPool : public RandomPool
{
public:
- //! blocking will be ignored if the prefered RNG isn't available
+ //! use blocking to choose seeding with BlockingRng or NonblockingRng. the parameter is ignored if only one of these is available
explicit AutoSeededRandomPool(bool blocking = false, unsigned int seedSize = 32)
{Reseed(blocking, seedSize);}
void Reseed(bool blocking = false, unsigned int seedSize = 32);
@@ -96,7 +96,7 @@ template <class BLOCK_CIPHER>
class AutoSeededX917RNG : public RandomNumberGenerator, public NotCopyable
{
public:
- //! blocking will be ignored if the prefered RNG isn't available
+ //! 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);}
void Reseed(bool blocking = false);