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
|
@ -3340,7 +3340,6 @@ void Com_RandomBytes( byte *string, int len )
|
|||
return;
|
||||
|
||||
Com_Printf( "Com_RandomBytes: using weak randomization\n" );
|
||||
srand( time( 0 ) );
|
||||
for( i = 0; i < len; i++ )
|
||||
string[i] = (unsigned char)( rand() % 255 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue