VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core/RandomNumberGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/RandomNumberGenerator.h')
-rw-r--r--src/Core/RandomNumberGenerator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Core/RandomNumberGenerator.h b/src/Core/RandomNumberGenerator.h
index 2c7587c..2f61cd9 100644
--- a/src/Core/RandomNumberGenerator.h
+++ b/src/Core/RandomNumberGenerator.h
@@ -19,8 +19,8 @@ namespace VeraCrypt
{
public:
static void AddToPool (const ConstBufferPtr &buffer);
- static void GetData (const BufferPtr &buffer) { GetData (buffer, false); }
- static void GetDataFast (const BufferPtr &buffer) { GetData (buffer, true); }
+ static void GetData (const BufferPtr &buffer, bool allowAnyLength = false) { GetData (buffer, false, allowAnyLength); }
+ static void GetDataFast (const BufferPtr &buffer, bool allowAnyLength = false) { GetData (buffer, true, allowAnyLength); }
static shared_ptr <Hash> GetHash ();
static bool IsEnrichedByUser () { return EnrichedByUser; }
static bool IsRunning () { return Running; }
@@ -34,7 +34,7 @@ namespace VeraCrypt
protected:
static void AddSystemDataToPool (bool fast);
- static void GetData (const BufferPtr &buffer, bool fast);
+ static void GetData (const BufferPtr &buffer, bool fast, bool allowAnyLength);
static void HashMixPool ();
static void Test ();
RandomNumberGenerator ();