lazy initialization or tunnel gateway's random buffer

This commit is contained in:
orignal 2021-11-20 18:31:18 -05:00
parent cb61897236
commit 6c57ba36f7
2 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2020, The PurpleI2P Project
* Copyright (c) 2013-2021, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
@ -38,7 +38,7 @@ namespace tunnel
std::vector<std::shared_ptr<const I2NPMessage> > m_TunnelDataMsgs;
std::shared_ptr<I2NPMessage> m_CurrentTunnelDataMsg;
size_t m_RemainingSize;
uint8_t m_NonZeroRandomBuffer[TUNNEL_DATA_MAX_PAYLOAD_SIZE];
uint8_t * m_NonZeroRandomBuffer;
};
class TunnelGateway