Of course (...) in CryptGenRandom() the size comes before the buffer.

This commit is contained in:
Frank Denis 2013-01-21 19:45:58 -08:00
parent 4668611533
commit 0d48d2a10b

View File

@ -163,7 +163,7 @@ sysrandom_buf(void * const buf, const size_t size)
abort(); abort();
} }
#else #else
if (! CryptGenRandom(stream.hcrypt_prov, buf, size)) { if (! CryptGenRandom(stream.hcrypt_prov, size, buf)) {
abort(); abort();
} }
#endif #endif