diff options
author | Jack Lloyd <[email protected]> | 2018-10-01 05:28:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-01 05:28:59 -0400 |
commit | b96189789154222a8de57e31deb457be4208b4b3 (patch) | |
tree | 3e507015919fe4c73ccdabd3903fdcf178d5fd1b /src/lib/rng/system_rng/system_rng.cpp | |
parent | 388530b25b3de0e33f85612d91721dc190b3347d (diff) |
Fix more MSVC warnings
Diffstat (limited to 'src/lib/rng/system_rng/system_rng.cpp')
-rw-r--r-- | src/lib/rng/system_rng/system_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp index aa7858d4a..ae027d021 100644 --- a/src/lib/rng/system_rng/system_rng.cpp +++ b/src/lib/rng/system_rng/system_rng.cpp @@ -48,7 +48,7 @@ class System_RNG_Impl final : public RandomNumberGenerator void randomize(uint8_t buf[], size_t len) override { - bool success = m_rtlgenrandom(buf, len) == TRUE; + bool success = m_rtlgenrandom(buf, ULONG(len)) == TRUE; if(!success) throw Exception("RtlGenRandom failed"); } |