fix: random limit

This commit is contained in:
2021-09-02 19:21:59 +02:00
parent c3edb96a1c
commit ec948af91e

View File

@@ -60,7 +60,7 @@ void ServerConnexion::checkKeepAlive(){
}
void ServerConnexion::sendKeepAlive(){
m_KeepAlive.keepAliveID = utils::getRandomNumber(UINT64_MAX);
m_KeepAlive.keepAliveID = utils::getRandomNumber(RAND_MAX);
m_KeepAlive.recievedResponse = false;
protocol::KeepAlivePacket keepAlivePacket(m_KeepAlive.keepAliveID);