mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
fix the mod so we get values up to 255
This commit is contained in:
parent
d72b931ebe
commit
85c0c1fa98
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void loadRandomIdentifier(unsigned char* identifierBuffer, int numBytes) {
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|
||||||
for (int i = 0; i < numBytes; i++) {
|
for (int i = 0; i < numBytes; i++) {
|
||||||
identifierBuffer[i] = rand() % 255;
|
identifierBuffer[i] = rand() % 256;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue