| 103 | } |
| 104 | |
| 105 | void ReportHardwareRand() |
| 106 | { |
| 107 | // This must be done in a separate function, as InitHardwareRand() may be indirectly called |
| 108 | // from global constructors, before logging is initialized. |
| 109 | if (g_rdseed_supported) { |
| 110 | LogInfo("Using RdSeed as an additional entropy source"); |
| 111 | } |
| 112 | if (g_rdrand_supported) { |
| 113 | LogInfo("Using RdRand as an additional entropy source"); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** Read 64 bits of entropy using rdrand. |
| 118 | * |