1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 07:29:10 +00:00

(svn r1031) -Fix: [Network] The unique-id was not as unique as I though it was..

This commit is contained in:
truelight
2004-12-12 17:47:50 +00:00
parent 6d8a0c52f5
commit c8452c5195

View File

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