summaryrefslogtreecommitdiff
path: root/osrng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'osrng.cpp')
-rw-r--r--osrng.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/osrng.cpp b/osrng.cpp
index 52d1f53..fa6dd36 100644
--- a/osrng.cpp
+++ b/osrng.cpp
@@ -74,13 +74,6 @@ NonblockingRng::~NonblockingRng()
#endif
}
-byte NonblockingRng::GenerateByte()
-{
- byte b;
- GenerateBlock(&b, 1);
- return b;
-}
-
void NonblockingRng::GenerateBlock(byte *output, size_t size)
{
#ifdef CRYPTOPP_WIN32_AVAILABLE
@@ -121,13 +114,6 @@ BlockingRng::~BlockingRng()
close(m_fd);
}
-byte BlockingRng::GenerateByte()
-{
- byte b;
- GenerateBlock(&b, 1);
- return b;
-}
-
void BlockingRng::GenerateBlock(byte *output, size_t size)
{
while (size)
@@ -175,7 +161,7 @@ void AutoSeededRandomPool::Reseed(bool blocking, unsigned int seedSize)
{
SecByteBlock seed(seedSize);
OS_GenerateRandomBlock(blocking, seed, seedSize);
- Put(seed, seedSize);
+ IncorporateEntropy(seed, seedSize);
}
NAMESPACE_END