mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
Cast CryptGenRandom pointer to (BYTE *) to make MSVC happy when compiling as a C++ project
This commit is contained in:
parent
6df6be8911
commit
8fa91a91ab
@ -178,7 +178,7 @@ randombytes_salsa20_random_stir(void)
|
||||
abort();
|
||||
}
|
||||
#else /* _WIN32 */
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, sizeof m0, m0)) {
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, sizeof m0, (BYTE *) m0)) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
@ -167,7 +167,7 @@ randombytes_sysrandom_buf(void * const buf, const size_t size)
|
||||
abort();
|
||||
}
|
||||
#else
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, size, buf)) {
|
||||
if (! CryptGenRandom(stream.hcrypt_prov, size, (BYTE *) buf)) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user