cid318968 Calling risky function

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I81717e28f64cfe70a598363ca4723b177209d99f
pull/7452/head
Caolán McNamara 2023-10-17 11:11:56 +01:00 committed by Miklos Vajna
parent f86d894eb1
commit d52dc848bb
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ public:
std::cerr << "Attempt connect to " << uri << " for trace " << _trace << "\n";
getNextRecord();
_start = std::chrono::steady_clock::now() + std::chrono::milliseconds(delayMs);
_nextPing = _start + std::chrono::milliseconds((long)(std::rand() * 1000.0) / RAND_MAX);
_nextPing = _start + std::chrono::milliseconds(Util::rng::getNext() % 1000);
_lastTile = _start;
}