File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,13 @@ static void RandAddSeedPerfmon()
166
166
if (ret == ERROR_SUCCESS) {
167
167
RAND_add (vData.data (), nSize, nSize / 100.0 );
168
168
memory_cleanse (vData.data (), nSize);
169
- LogPrint (BCLog::RAND, " %s: %lu bytes\n " , __func__, nSize);
170
169
} else {
171
- static bool warned = false ; // Warn only once
172
- if (!warned) {
173
- LogPrintf (" %s: Warning: RegQueryValueExA(HKEY_PERFORMANCE_DATA) failed with code %i\n " , __func__, ret);
174
- warned = true ;
175
- }
170
+ // Performance data is only a best-effort attempt at improving the
171
+ // situation when the OS randomness (and other sources) aren't
172
+ // adequate. As a result, failure to read it is isn't considered critical,
173
+ // so we don't call RandFailure().
174
+ // TODO: Add logging when the logger is made functional before global
175
+ // constructors have been invoked.
176
176
}
177
177
#endif
178
178
}
You can’t perform that action at this time.
0 commit comments