summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-12 17:47:50 +0000
committertruelight <truelight@openttd.org>2004-12-12 17:47:50 +0000
commit1d823bcef48d7fc5c4c00602f20474b868b39159 (patch)
treeb676ef42aecf8646bd31425bdb9510b63d58b00f /network.c
parentbbd3ec33d0d9a0e0ff189691781d352efff404d2 (diff)
downloadopenttd-1d823bcef48d7fc5c4c00602f20474b868b39159.tar.xz
(svn r1031) -Fix: [Network] The unique-id was not as unique as I though it was..
Diffstat (limited to 'network.c')
-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);