mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Of course (...) in CryptGenRandom() the size comes before the buffer.
This commit is contained in:
@@ -163,7 +163,7 @@ sysrandom_buf(void * const buf, const size_t size)
|
||||
abort();
|
||||
}
|
||||
#else
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, buf, size)) {
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, size, buf)) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user