Windows: when building for EFI bootloader, don't make calls to RDRAND/RDSEED functions since we don't link against their implementation in EFI bootloader

This commit is contained in:
Mounir IDRASSI 2019-11-02 00:48:59 +01:00
parent 6252d96b0d
commit 1994520e75
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,7 @@ void DetectX86Features()
}
}
}
#ifndef _UEFI
/* Add check fur buggy RDRAND (AMD Ryzen case) even if we always use RDSEED instead of RDRAND when RDSEED available */
if (g_hasRDRAND)
{
@ -412,6 +412,7 @@ void DetectX86Features()
g_hasRDSEED = 0;
}
}
#endif
if (!g_cacheLineSize)
g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE;