Uint8List nextBytes(int count) { Uint8List list = Uint8List(count); for (int i = 0; i < list.length; i++) { list[i] = nextUint8(); } return list; }