Skip to content

Commit

Permalink
Windows: use modern API to gather system entropy for random generatio…
Browse files Browse the repository at this point in the history
…n instead of obsolete that were not working

This commit increases randomness quality by using more dynamic/varied sources of entropy.
PDH-based disk and network statistics collection in now added to random pool

- Introduced `GetDiskStatistics` to gather disk read/write performance data using PDH API.
- Introduced `GetNetworkStatistics` to gather network send/receive performance data using PDH API.
- Integrated high-resolution timestamps and random intervals to improve entropy in collected data.
- Updated `SlowPoll` function to utilize PDH-based disk and network statistics.
- Removed obsolete NetAPI32-based network statistics collection.
  • Loading branch information
idrassi committed Dec 26, 2024
1 parent f3af65b commit 4e85009
Showing 1 changed file with 212 additions and 134 deletions.
Loading

0 comments on commit 4e85009

Please sign in to comment.