int result = generator.nextInt() % 256; if (result < 0) result = -result; return result;
byte[] temp = new byte[length]; generator.nextBytes(temp); System.arraycopy(temp, 0, data, offset, length); return length;
generator.nextBytes(data); return data.length;
// It's all random so skipping has no effect return bytesToSkip;