We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 642c8e7 + cf04d83 commit 1132cdbCopy full SHA for 1132cdb
src/util.cpp
@@ -121,15 +121,17 @@ class CInit
121
CRYPTO_set_locking_callback(locking_callback);
122
123
#ifdef WIN32
124
- // Seed random number generator with screen scrape and other hardware sources
+ // Seed OpenSSL PRNG with current contents of the screen
125
RAND_screen();
126
#endif
127
128
- // Seed random number generator with performance counter
+ // Seed OpenSSL PRNG with performance counter
129
RandAddSeed();
130
}
131
~CInit()
132
{
133
+ // Securely erase the memory used by the PRNG
134
+ RAND_cleanup();
135
// Shutdown OpenSSL library multithreading support
136
CRYPTO_set_locking_callback(NULL);
137
for (int i = 0; i < CRYPTO_num_locks(); i++)
0 commit comments