Improve pool seeding during startup:

* When starting up, we no longer rely just on the standard
  system RNG to generate entropy: we attempt to squeeze some
  from the execution state, and to recover any entropy that
  we had previously stored.

* When shutting down, if sufficient entropy has been accumulated
  attempt to store it for future use.
This commit is contained in:
Nik Bougalis
2015-02-17 19:14:01 -08:00
committed by Tom Ritchford
parent 382a16ff07
commit 84e618b3f2
5 changed files with 79 additions and 4 deletions

View File

@@ -124,6 +124,9 @@ public:
/** Returns the full path and filename of the debug log file. */
boost::filesystem::path getDebugLogFile () const;
/** Returns the full path and filename of the entropy seed file. */
boost::filesystem::path getEntropyFile () const;
// DEPRECATED
boost::filesystem::path CONFIG_FILE; // used by UniqueNodeList
private: