Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115012
D4389.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4389.id.diff
View Options
diff --git a/src/random.cpp b/src/random.cpp
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -173,16 +173,13 @@
if (ret == ERROR_SUCCESS) {
RAND_add(vData.data(), nSize, nSize / 100.0);
memory_cleanse(vData.data(), nSize);
- LogPrint(BCLog::RAND, "%s: %lu bytes\n", __func__, nSize);
} else {
- // Warn only once
- static bool warned = false;
- if (!warned) {
- LogPrintf("%s: Warning: RegQueryValueExA(HKEY_PERFORMANCE_DATA) "
- "failed with code %i\n",
- __func__, ret);
- warned = true;
- }
+ // Performance data is only a best-effort attempt at improving the
+ // situation when the OS randomness (and other sources) aren't
+ // adequate. As a result, failure to read it is isn't considered
+ // critical, so we don't call RandFailure().
+ // TODO: Add logging when the logger is made functional before global
+ // constructors have been invoked.
}
#endif
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 09:15 (42 m, 34 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187179
Default Alt Text
D4389.id.diff (1 KB)
Attached To
D4389: Don't log RandAddSeedPerfmon details
Event Timeline
Log In to Comment