mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-07-28 20:59:24 +00:00
RNG per destination. Use RNG from tunnels in tunnel pool
This commit is contained in:
@@ -2401,13 +2401,7 @@ namespace stream
|
||||
|
||||
uint32_t StreamingDestination::GetRandom ()
|
||||
{
|
||||
if (m_Owner)
|
||||
{
|
||||
auto pool = m_Owner->GetTunnelPool ();
|
||||
if (pool)
|
||||
return pool->GetRng ()();
|
||||
}
|
||||
return rand ();
|
||||
return m_Owner ? m_Owner->GetRng ()() : rand ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user