diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qcommon/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 74df47ba..fef14331 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -3388,7 +3388,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 ); } |