diff --git a/src/encrypt.c b/src/encrypt.c index 899cdf7e..0d15aad4 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -339,8 +339,8 @@ int rand_bytes(uint8_t *output, int len) #if defined(USE_CRYPTO_OPENSSL) return RAND_bytes(output, len); #elif defined(USE_CRYPTO_POLARSSL) - static entropy_context ec = {0}; - static ctr_drbg_context cd_ctx = {0}; + static entropy_context ec = {}; + static ctr_drbg_context cd_ctx = {}; static unsigned char rand_initialised = 0; const size_t blen = min(len, CTR_DRBG_MAX_REQUEST);