changed lrand48 to RSRandom for cross-plateform compatibility, in rsgxsnettunnel.cc

This commit is contained in:
csoler 2018-07-19 23:46:31 +02:00
parent b8062f2e21
commit d4fce07e4c
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -45,9 +45,9 @@ RsGxsNetTunnelService::RsGxsNetTunnelService(): mGxsNetTunnelMtx("GxsNetTunnel")
{ {
mRandomBias.clear(); mRandomBias.clear();
mLastKeepAlive = time(NULL) + (lrand48()%20); // adds some variance in order to avoid doing all this tasks at once across services 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) + (lrand48()%20); mLastAutoWash = time(NULL) + (RSRandom::random_u32()%20);
mLastDump = time(NULL) + (lrand48()%20); mLastDump = time(NULL) + (RSRandom::random_u32()%20);
} }
//===========================================================================================================================================// //===========================================================================================================================================//