VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/cpu.c')
-rw-r--r--src/Crypto/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c
index 78cc715a..53912799 100644
--- a/src/Crypto/cpu.c
+++ b/src/Crypto/cpu.c
@@ -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;