C++ compat

This commit is contained in:
Frank Denis 2017-02-19 19:03:18 +01:00
parent eb5ff7270e
commit fe3e60392c

View File

@ -170,7 +170,7 @@ void
randombytes_buf_deterministic(void * const buf, const size_t size, randombytes_buf_deterministic(void * const buf, const size_t size,
const unsigned char seed[randombytes_SEEDBYTES]) const unsigned char seed[randombytes_SEEDBYTES])
{ {
static const unsigned char zero[crypto_stream_chacha20_ietf_NONCEBYTES]; static const unsigned char zero[crypto_stream_chacha20_ietf_NONCEBYTES] = { 0 };
COMPILER_ASSERT(randombytes_SEEDBYTES == crypto_stream_chacha20_ietf_KEYBYTES); COMPILER_ASSERT(randombytes_SEEDBYTES == crypto_stream_chacha20_ietf_KEYBYTES);
if (size > 0x4000000000ULL) { if (size > 0x4000000000ULL) {