MCPcopy Create free account
hub / github.com/catboost/catboost / NetAckRnd

Function NetAckRnd

library/cpp/netliba/v6/net_acks.cpp:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188 static std::atomic<ui32> netAckRndVal = (ui32)GetCycleCount();
189 ui32 NetAckRnd() {
190 const auto nextNetAckRndVal = static_cast<ui32>(((ui64)netAckRndVal.load(std::memory_order_acquire) * 279470273) % 4294967291);
191 netAckRndVal.store(nextNetAckRndVal, std::memory_order_release);
192 return nextNetAckRndVal;
193 }
194}

Callers 2

SendDataMethod · 0.70
UpdateAliveMethod · 0.70

Calls 2

loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected