diff options
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/Random.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/Random.cpp b/lib/crypto/Random.cpp index c64e7d50..30049ff7 100644 --- a/lib/crypto/Random.cpp +++ b/lib/crypto/Random.cpp @@ -69,7 +69,7 @@ void Random::Generate(void *pOutput, int Length) std::string Random::GenerateHex(int Length) { uint8_t r[256]; - if(Length > sizeof(r)) + if(Length > (int)sizeof(r)) { THROW_EXCEPTION(CipherException, LengthRequestedTooLongForRandomHex) } |