fix the mod so we get values up to 255

This commit is contained in:
Stephen Birarda 2013-05-17 15:07:12 -07:00
parent d72b931ebe
commit 85c0c1fa98

View file

@ -119,7 +119,7 @@ void loadRandomIdentifier(unsigned char* identifierBuffer, int numBytes) {
srand(time(NULL));
for (int i = 0; i < numBytes; i++) {
identifierBuffer[i] = rand() % 255;
identifierBuffer[i] = rand() % 256;
}
}