RNG per destination. Use RNG from tunnels in tunnel pool

This commit is contained in:
orignal
2025-12-11 17:43:14 -05:00
parent d4ec15361f
commit 4f73e9678e
13 changed files with 33 additions and 56 deletions
+1 -7
View File
@@ -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 ();
}
}
}