mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
changed lrand48 to RSRandom for cross-plateform compatibility, in rsgxsnettunnel.cc
This commit is contained in:
parent
b8062f2e21
commit
d4fce07e4c
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue