VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Common/Crypto.c2
-rw-r--r--src/Common/Crypto.h2
-rw-r--r--src/Mount/Mount.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c
index 562b4c6d..249a4117 100644
--- a/src/Common/Crypto.c
+++ b/src/Common/Crypto.c
@@ -1221,7 +1221,7 @@ BOOL IsHwEncryptionEnabled ()
static BOOL CpuRngDisabled = TRUE;
-BOOL IsCpuRngSupport ()
+BOOL IsCpuRngSupported ()
{
if (HasRDSEED() || HasRDRAND())
return TRUE;
diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h
index f1b35977..6c2befb1 100644
--- a/src/Common/Crypto.h
+++ b/src/Common/Crypto.h
@@ -385,7 +385,7 @@ BOOL IsAesHwCpuSupported ();
void EnableHwEncryption (BOOL enable);
BOOL IsHwEncryptionEnabled ();
-BOOL IsCpuRngSupport ();
+BOOL IsCpuRngSupported ();
void EnableCpuRng (BOOL enable);
BOOL IsCpuRngEnabled ();
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 9cd61757..5f12baa5 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -11115,7 +11115,7 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM
EnableWindow (GetDlgItem (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG), FALSE);
}
- if (HasRDRAND() || HasRDSEED())
+ if (IsCpuRngSupported())
{
CheckDlgButton (hwndDlg, IDC_ENABLE_CPU_RNG, (driverConfig & VC_DRIVER_CONFIG_ENABLE_CPU_RNG) ? BST_CHECKED : BST_UNCHECKED);
}