mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
changed lrand48 to RSRandom for cross-plateform compatibility, in rsgxsnettunnel.cc
This commit is contained in:
parent
b8062f2e21
commit
d4fce07e4c
@ -45,9 +45,9 @@ RsGxsNetTunnelService::RsGxsNetTunnelService(): mGxsNetTunnelMtx("GxsNetTunnel")
|
||||
{
|
||||
mRandomBias.clear();
|
||||
|
||||
mLastKeepAlive = time(NULL) + (lrand48()%20); // adds some variance in order to avoid doing all this tasks at once across services
|
||||
mLastAutoWash = time(NULL) + (lrand48()%20);
|
||||
mLastDump = time(NULL) + (lrand48()%20);
|
||||
mLastKeepAlive = time(NULL) + (RSRandom::random_u32()%20); // adds some variance in order to avoid doing all this tasks at once across services
|
||||
mLastAutoWash = time(NULL) + (RSRandom::random_u32()%20);
|
||||
mLastDump = time(NULL) + (RSRandom::random_u32()%20);
|
||||
}
|
||||
|
||||
//===========================================================================================================================================//
|
||||
|
Loading…
Reference in New Issue
Block a user