mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use util_rand as there is no srand for rand to work
This commit is contained in:
@@ -29,6 +29,7 @@ extern "C"
|
||||
#include "../localisation/date.h"
|
||||
#include "../management/finance.h"
|
||||
#include "../peep/peep.h"
|
||||
#include "../util/util.h"
|
||||
#include "../world/map.h"
|
||||
#include "../world/park.h"
|
||||
#include "http.h"
|
||||
@@ -231,7 +232,7 @@ private:
|
||||
char key[17];
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
int hexCharIndex = rand() % Util::CountOf(hexChars);
|
||||
int hexCharIndex = util_rand() % Util::CountOf(hexChars);
|
||||
key[i] = hexChars[hexCharIndex];
|
||||
}
|
||||
key[Util::CountOf(key) - 1] = 0;
|
||||
|
||||
Reference in New Issue
Block a user