Uint8List randBytes(int n) { var src = Random.secure(); return Uint8List.fromList(List<int>.generate(n, (index) => src.nextInt(256))); }