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:
parent
27e1579e4c
commit
213629ef52
@ -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 (); )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user