I'll retain the new way seeding the random number generator.. these calls are therefore redundant
This commit is contained in:
parent
e4d0c14f70
commit
4e8a181073
4 changed files with 1 additions and 9 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue