VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/ChangePasswordDialog.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-11 18:27:08 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-11 18:31:41 +0100
commitd32826949213d2dada7759bc7641df370875c8ec (patch)
treecc08259847353d889180c401cedfc39dafb98d81 /src/Main/Forms/ChangePasswordDialog.cpp
parent134ef041406c78283db0b82760d41248266d481d (diff)
downloadVeraCrypt-d32826949213d2dada7759bc7641df370875c8ec.tar.gz
VeraCrypt-d32826949213d2dada7759bc7641df370875c8ec.zip
Linux/macOSX: always display random gathering dialog/interface before performing sensitive operations that needs good quality random.
Diffstat (limited to 'src/Main/Forms/ChangePasswordDialog.cpp')
-rw-r--r--src/Main/Forms/ChangePasswordDialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main/Forms/ChangePasswordDialog.cpp b/src/Main/Forms/ChangePasswordDialog.cpp
index f52e169d..83186c05 100644
--- a/src/Main/Forms/ChangePasswordDialog.cpp
+++ b/src/Main/Forms/ChangePasswordDialog.cpp
@@ -102,6 +102,8 @@ namespace VeraCrypt
else if (DialogMode != Mode::RemoveAllKeyfiles)
newKeyfiles = CurrentPasswordPanel->GetKeyfiles();
+ /* force the display of the random enriching interface */
+ RandomNumberGenerator::SetEnrichedByUserStatus (false);
Gui->UserEnrichRandomPool (this, NewPasswordPanel->GetPkcs5Kdf() ? NewPasswordPanel->GetPkcs5Kdf()->GetHash() : shared_ptr <Hash>());
{