mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-09 22:14:15 +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;
|
uint32_t token;
|
||||||
RAND_bytes ((uint8_t *)&token, 4);
|
RAND_bytes ((uint8_t *)&token, 4);
|
||||||
|
token |= 0x7FFFFFFF; // clear first bit
|
||||||
auto ts = i2p::util::GetSecondsSinceEpoch ();
|
auto ts = i2p::util::GetSecondsSinceEpoch ();
|
||||||
for (auto it = m_Tokens.begin (); it != m_Tokens.end (); )
|
for (auto it = m_Tokens.begin (); it != m_Tokens.end (); )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user