mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 21:43:41 +00:00
fix a warning while initializing a struct
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user