byte[] (int length) { final byte[] array = new byte[length]; final ThreadLocalRandom rnd = ThreadLocalRandom.current(); for (int i = 0; i < array.length; i++) { array[i] = (byte)rnd.nextInt(Byte.MIN_VALUE, Byte.MAX_VALUE); } return array; }