| 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 | } |
no test coverage detected