aboutsummaryrefslogtreecommitdiff
path: root/src/randomenv.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2019-10-26 08:22:11 -0400
committerfanquake <fanquake@gmail.com>2019-11-18 08:56:40 -0500
commit4fcfcc294e7cb17956e283d09050cb997093a35d (patch)
tree231dd1b4fb78e155295388e987bdf9d5b0d9b315 /src/randomenv.cpp
parent5624ab0b4f844dc7c17aeb1b009f002c33c38fb3 (diff)
downloadbitcoin-4fcfcc294e7cb17956e283d09050cb997093a35d.tar.xz
random: stop retrieving random bytes from OpenSSL
On the ::SLOW path we would use OpenSSL as an additional source of random bytes. This commit removes that functionality. Note that this was always only an additional source, and that we never checked the return value RAND_bytes(): https://www.openssl.org/docs/manmaster/man3/RAND_bytes.html RAND_bytes() puts num cryptographically strong pseudo-random bytes into buf.
Diffstat (limited to 'src/randomenv.cpp')
-rw-r--r--src/randomenv.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/randomenv.cpp b/src/randomenv.cpp
index 603c88eaab..ec42ddabc3 100644
--- a/src/randomenv.cpp
+++ b/src/randomenv.cpp
@@ -70,7 +70,6 @@ namespace {
void RandAddSeedPerfmon(CSHA512& hasher)
{
#ifdef WIN32
- // Don't need this on Linux, OpenSSL automatically uses /dev/urandom
// Seed with the entire set of perfmon data
// This can take up to 2 seconds, so only do it every 10 minutes