zero init with bad random
diff --git a/quic/core/crypto/quic_random.cc b/quic/core/crypto/quic_random.cc index 56657b5..21a3b30 100644 --- a/quic/core/crypto/quic_random.cc +++ b/quic/core/crypto/quic_random.cc
@@ -24,7 +24,7 @@ } uint64_t Xoshiro256PlusPlus() { - static thread_local uint64_t rng_state[4]; + static thread_local uint64_t rng_state[4] = {0,0,0,0}; static thread_local bool rng_state_initialized = false; if (QUIC_PREDICT_FALSE(!rng_state_initialized)) { RAND_bytes(reinterpret_cast<uint8_t*>(&rng_state), sizeof(rng_state));