diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-24 15:27:37 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-26 15:15:17 +0200 |
| commit | 8ae973c00cfb02161bb2c2a6c839e510cd409278 (patch) | |
| tree | 26796124f38b81c31dcfd1908268a06bb246757c /src/netbase.cpp | |
| parent | Issue warning if collecting RandSeed data failed (diff) | |
| download | discoin-8ae973c00cfb02161bb2c2a6c839e510cd409278.tar.xz discoin-8ae973c00cfb02161bb2c2a6c839e510cd409278.zip | |
Allocate more space if necessary in RandSeedAddPerfMon
Currently we use a fixed buffer of 250000 bytes to request
HKEY_PERFORMANCE_DATA. In many cases this is not enough, causing the
entropy collection to be skipped.
Use a loop that grows the buffer as specified in the RegQueryValueEx
documentation:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724911%28v=vs.85%29.aspx
(as the size of the performance data can differ for every call, the
normal solution of requesting the size then allocating that can't work)
Diffstat (limited to 'src/netbase.cpp')
0 files changed, 0 insertions, 0 deletions