VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core/RandomNumberGenerator.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-19 03:30:05 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-19 03:31:47 +0200
commit4f1de9666abc476c72462cb6436c85e53eb3f048 (patch)
treec2b096e0a1779e4f3f4c814da2d9a33f41fa5176 /src/Core/RandomNumberGenerator.h
parentf765860dfb60a98dd7d46c97d76fe2776b7e2022 (diff)
downloadVeraCrypt-4f1de9666abc476c72462cb6436c85e53eb3f048.tar.gz
VeraCrypt-4f1de9666abc476c72462cb6436c85e53eb3f048.zip
Linux/MacOSX: Don't always ignore /dev/random failure by making sure that it has returned random bytes successfully at least once during the lifetime of RandomNumberGenerator
Diffstat (limited to 'src/Core/RandomNumberGenerator.h')
-rw-r--r--src/Core/RandomNumberGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Core/RandomNumberGenerator.h b/src/Core/RandomNumberGenerator.h
index 6df31ae0..9ef45dfe 100644
--- a/src/Core/RandomNumberGenerator.h
+++ b/src/Core/RandomNumberGenerator.h
@@ -55,6 +55,7 @@ namespace VeraCrypt
static bool Running;
static size_t WriteOffset;
static struct rand_data *JitterRngCtx;
+ static bool DevRandomSucceeded;
};
}