Of course (...) in CryptGenRandom() the size comes before the buffer.
This commit is contained in:
parent
4668611533
commit
0d48d2a10b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user