mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix Com_RandomBytes weak-random case
255 is valid for unsigned char too.
This commit is contained in:
parent
40cfbc9a82
commit
c4a2836269
1 changed files with 1 additions and 1 deletions
|
@ -3552,7 +3552,7 @@ void Com_RandomBytes( byte *string, int len )
|
|||
|
||||
Com_Printf( "Com_RandomBytes: using weak randomization\n" );
|
||||
for( i = 0; i < len; i++ )
|
||||
string[i] = (unsigned char)( rand() % 255 );
|
||||
string[i] = (unsigned char)( rand() % 256 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue