Fix spacing, Replace quint16 with quint32 in ::genRand()
This commit is contained in:
parent
fd1baacd3d
commit
6241b3d6cb
@ -177,7 +177,7 @@ class AOClient : public QObject {
|
||||
|
||||
// Command helper functions
|
||||
QStringList buildAreaList(int area_idx);
|
||||
int genRand(int min, int max);
|
||||
int genRand(int min, int max);
|
||||
|
||||
// Command function global variables
|
||||
bool change_auth_started = false;
|
||||
|
@ -418,7 +418,7 @@ int AOClient::genRand(int min, int max)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
|
||||
qsrand(QDateTime::currentMSecsSinceEpoch());
|
||||
quint16 random_number = (qrand() % (max - min + 1)) + min;
|
||||
quint32 random_number = (qrand() % (max - min + 1)) + min;
|
||||
return random_number;
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user