1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-04 17:14:14 +00:00

drop highest bit for token

This commit is contained in:
orignal 2016-12-22 20:30:50 -05:00
parent 27e1579e4c
commit 213629ef52

View File

@ -775,6 +775,7 @@ namespace http {
{
uint32_t token;
RAND_bytes ((uint8_t *)&token, 4);
token |= 0x7FFFFFFF; // clear first bit
auto ts = i2p::util::GetSecondsSinceEpoch ();
for (auto it = m_Tokens.begin (); it != m_Tokens.end (); )
{