List<int> randomBytes(int length) { final random = math.Random.secure(); return List<int>.generate(length, (i) => random.nextInt(256)); }