feat: changed random engine

This commit is contained in:
2021-11-10 14:40:42 +01:00
parent 116defc142
commit c8067bcacf
5 changed files with 19 additions and 28 deletions

View File

@@ -62,7 +62,7 @@ void ServerConnexion::checkKeepAlive() {
}
void ServerConnexion::sendKeepAlive() {
m_KeepAlive.keepAliveID = utils::getRandomNumber(RAND_MAX);
m_KeepAlive.keepAliveID = utils::getRandomInt<std::uint64_t>(0, RAND_MAX);
m_KeepAlive.recievedResponse = false;
protocol::KeepAlivePacket keepAlivePacket(m_KeepAlive.keepAliveID);