mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T486 Using QRandomGenerator.
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
#include "blackmisc/fileutils.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/variantlist.h"
|
||||
#include "blackmisc/math/mathutils.h"
|
||||
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Geo;
|
||||
using namespace BlackMisc::Math;
|
||||
using namespace BlackMisc::Network;
|
||||
using namespace BlackMisc::Audio;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
@@ -30,7 +32,7 @@ namespace BlackMisc
|
||||
{
|
||||
int randomIndex(int size)
|
||||
{
|
||||
return qrand() % size;
|
||||
return CMathUtils::randomInteger(0, size - 1);
|
||||
}
|
||||
|
||||
const CServer &CTestData::getTrafficServer()
|
||||
|
||||
Reference in New Issue
Block a user