Fix spacing, Replace quint16 with quint32 in ::genRand()

This commit is contained in:
Salanto 2021-01-10 03:17:49 +01:00
parent fd1baacd3d
commit 6241b3d6cb
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ int AOClient::genRand(int min, int max)
{ {
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) #if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
qsrand(QDateTime::currentMSecsSinceEpoch()); qsrand(QDateTime::currentMSecsSinceEpoch());
quint16 random_number = (qrand() % (max - min + 1)) + min; quint32 random_number = (qrand() % (max - min + 1)) + min;
return random_number; return random_number;
#else #else