| 92 | } |
| 93 | |
| 94 | static void ReportHardwareRand() |
| 95 | { |
| 96 | // This must be done in a separate function, as InitHardwareRand() may be indirectly called |
| 97 | // from global constructors, before logging is initialized. |
| 98 | if (g_rdseed_supported) { |
| 99 | LogPrintf("Using RdSeed as additional entropy source\n"); |
| 100 | } |
| 101 | if (g_rdrand_supported) { |
| 102 | LogPrintf("Using RdRand as an additional entropy source\n"); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** Read 64 bits of entropy using rdrand. |
| 107 | * |