summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.c b/network.c
index 97f7b33f2..3456355cf 100644
--- a/network.c
+++ b/network.c
@@ -1130,7 +1130,7 @@ void NetworkGenerateUniqueId()
char coding_string[NETWORK_NAME_LENGTH];
int di;
- snprintf(coding_string, sizeof(coding_string), "%d%s%d", InteractiveRandom(), "OpenTTD Unique ID", InteractiveRandom());
+ snprintf(coding_string, sizeof(coding_string), "%d%s", (uint)Random(), "OpenTTD Unique ID");
/* Generate the MD5 hash */
md5_init(&state);