Changeset View
Changeset View
Standalone View
Standalone View
src/randomenv.cpp
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| #include <sys/vmmeter.h> | #include <sys/vmmeter.h> | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #ifdef __linux__ | #ifdef __linux__ | ||||
| #include <sys/auxv.h> | #include <sys/auxv.h> | ||||
| #endif | #endif | ||||
| //! Necessary on some platforms | //! Necessary on some platforms | ||||
| extern char **environ; | extern char **environ; // NOLINT(readability-redundant-declaration) | ||||
| namespace { | namespace { | ||||
| void RandAddSeedPerfmon(CSHA512 &hasher) { | void RandAddSeedPerfmon(CSHA512 &hasher) { | ||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| // Seed with the entire set of perfmon data | // Seed with the entire set of perfmon data | ||||
| // This can take up to 2 seconds, so only do it every 10 minutes. | // This can take up to 2 seconds, so only do it every 10 minutes. | ||||
| // Initialize last_perfmon to 0 seconds, we don't skip the first call. | // Initialize last_perfmon to 0 seconds, we don't skip the first call. | ||||
| ▲ Show 20 Lines • Show All 475 Lines • Show Last 20 Lines | |||||