mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-18 23:21:39 +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