summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/crypto/src/osrng.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/CryptoPP/crypto/src/osrng.cpp
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/CryptoPP/crypto/src/osrng.cpp')
-rw-r--r--plugins/CryptoPP/crypto/src/osrng.cpp2
1 files changed, 1 insertions, 1 deletions
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<MicrosoftCryptoProvider>().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)