aboutsummaryrefslogtreecommitdiffstats
path: root/code/client
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-05-31 20:30:37 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-05-31 20:30:37 +0000
commit243b5bfdc79a8924d90df11cf5115bd3a959204b (patch)
tree2022cdfb6fdbd2efef30cca0d0cf752d6259ac20 /code/client
parent9336c78b2584b51c30be5acbb0f8b847cd4412ed (diff)
downloadioquake3-aero-243b5bfdc79a8924d90df11cf5115bd3a959204b.tar.gz
ioquake3-aero-243b5bfdc79a8924d90df11cf5115bd3a959204b.zip
I'll retain the new way seeding the random number generator.. these calls are therefore redundant
git-svn-id: svn://svn.icculus.org/quake3/trunk@1563 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r--code/client/cl_main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index 01c044a..814e7ab 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -1306,11 +1306,7 @@ void CL_RequestMotd( void ) {
BigShort( cls.updateServer.port ) );
info[0] = 0;
- // NOTE TTimo xoring against Com_Milliseconds, otherwise we may not have a true randomization
- // only srand I could catch before here is tr_noise.c l:26 srand(1001)
- // https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=382
- // NOTE: the Com_Milliseconds xoring only affects the lower 16-bit word,
- // but I decided it was enough randomization
+
Com_sprintf( cls.updateChallenge, sizeof( cls.updateChallenge ), "%i", ((rand() << 16) ^ rand()) ^ Com_Milliseconds());
Info_SetValueForKey( info, "challenge", cls.updateChallenge );