From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- plugins/CryptoPP/crypto/src/osrng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/CryptoPP/crypto/src/osrng.cpp') diff --git a/plugins/CryptoPP/crypto/src/osrng.cpp b/plugins/CryptoPP/crypto/src/osrng.cpp index 22f13e65d1..c841abf02c 100644 --- a/plugins/CryptoPP/crypto/src/osrng.cpp +++ b/plugins/CryptoPP/crypto/src/osrng.cpp @@ -77,7 +77,7 @@ void NonblockingRng::GenerateBlock(byte *output, size_t size) # ifdef WORKAROUND_MS_BUG_Q258000 const MicrosoftCryptoProvider &m_Provider = Singleton().Ref(); # endif - if (!CryptGenRandom(m_Provider.GetProviderHandle(), (DWORD)size, output)) + if (!CryptGenRandom(m_Provider.GetProviderHandle(), (uint32_t)size, output)) throw OS_RNG_Err("CryptGenRandom"); #else if (read(m_fd, output, size) != size) -- cgit v1.2.3