Fix spacing, Replace quint16 with quint32 in ::genRand()
This commit is contained in:
parent
fd1baacd3d
commit
6241b3d6cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user