mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T486 Using QRandomGenerator.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/threadutils.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/math/mathutils.h"
|
||||
|
||||
#include <QFlag>
|
||||
#include <Qt>
|
||||
@@ -32,6 +33,7 @@ using namespace BlackConfig;
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Geo;
|
||||
using namespace BlackMisc::Math;
|
||||
using namespace BlackMisc::Simulation;
|
||||
using namespace BlackMisc::Simulation::Settings;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
@@ -1104,7 +1106,7 @@ namespace BlackCore
|
||||
emit this->requestUiConsoleMessage(dm, true);
|
||||
}
|
||||
|
||||
const int t = 4500 + (qrand() % 1000); // makes sure not always using the same time difference
|
||||
const int t = CMathUtils::randomInteger(4500, 5500); // makes sure not always using the same time difference
|
||||
const QPointer<ISimulator> myself(this);
|
||||
QTimer::singleShot(t, this, [ = ]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user