|
|
@ -78,7 +78,7 @@ static void RDRandInit() |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint32_t eax, ebx, ecx, edx; |
|
|
|
uint32_t eax, ebx, ecx, edx; |
|
|
|
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx & CPUID_F1_ECX_RDRAND)) { |
|
|
|
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx & CPUID_F1_ECX_RDRAND)) { |
|
|
|
LogPrintf("Using RdRand as entropy source\n"); |
|
|
|
LogPrintf("Using RdRand as an additional entropy source\n"); |
|
|
|
rdrand_supported = true; |
|
|
|
rdrand_supported = true; |
|
|
|
} |
|
|
|
} |
|
|
|
hwrand_initialized.store(true); |
|
|
|
hwrand_initialized.store(true); |
|
|
|