1
0
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:
Ted John
2016-09-04 20:22:12 +01:00
parent 42c5c5b8dd
commit bf16890489

View File

@@ -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;