| Index: net/quic/core/crypto/quic_crypto_server_config.cc
|
| diff --git a/net/quic/core/crypto/quic_crypto_server_config.cc b/net/quic/core/crypto/quic_crypto_server_config.cc
|
| index dc5d4c0182295023fd80ac20585d8d063d85dffb..48dccf87b2810976423e03c436ee651cb3df7e1f 100644
|
| --- a/net/quic/core/crypto/quic_crypto_server_config.cc
|
| +++ b/net/quic/core/crypto/quic_crypto_server_config.cc
|
| @@ -795,8 +795,8 @@ QuicErrorCode QuicCryptoServerConfig::ProcessClientHello(
|
| CryptoUtils::Diversification diversification =
|
| CryptoUtils::Diversification::Never();
|
| if (version > QUIC_VERSION_32) {
|
| - rand->RandBytes(reinterpret_cast<char*>(out_diversification_nonce),
|
| - sizeof(*out_diversification_nonce));
|
| + rand->RandBytes(out_diversification_nonce->data(),
|
| + out_diversification_nonce->size());
|
| diversification =
|
| CryptoUtils::Diversification::Now(out_diversification_nonce);
|
| }
|
|
|