From: Holger Schemel Date: Thu, 6 Jan 2022 20:01:47 +0000 (+0100) Subject: changed using improved pseudo-random number generator for UUID generation X-Git-Tag: 4.3.0.3~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5e195517fdcbad3043eff72d91399f6a5e604d8b;p=rocksndiamonds.git changed using improved pseudo-random number generator for UUID generation --- diff --git a/src/init.c b/src/init.c index 2d6b750d..114b177f 100644 --- a/src/init.c +++ b/src/init.c @@ -6197,6 +6197,7 @@ void OpenAll(void) InitRND(NEW_RANDOMIZE); InitSimpleRandom(NEW_RANDOMIZE); + InitBetterRandom(NEW_RANDOMIZE); print_timestamp_time("[init global stuff]"); diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 33c6abc1..2692e69c 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -559,7 +559,7 @@ boolean getTokenValueFromString(char *string, char **token, char **value) static unsigned int uuid_random_function(int max) { - return GetSimpleRandom(max); + return GetBetterRandom(max); } char *getUUIDExt(unsigned int (*random_function)(int max))