84
77
void NonblockingRng::GenerateBlock(byte *output, size_t size)
86
79
#ifdef CRYPTOPP_WIN32_AVAILABLE
87
80
# ifdef WORKAROUND_MS_BUG_Q258000
90
83
if (!CryptGenRandom(m_Provider.GetProviderHandle(), (DWORD)size, output))
91
84
throw OS_RNG_Err("CryptGenRandom");