generateRandomRoomId function
Generates a cryptographically secure random room ID.
Implementation
Uint8List generateRandomRoomId() {
return Uint8List.fromList(
List.generate(kRoomIdLength, (_) => random.nextInt(256)),
);
}
Generates a cryptographically secure random room ID.
Uint8List generateRandomRoomId() {
return Uint8List.fromList(
List.generate(kRoomIdLength, (_) => random.nextInt(256)),
);
}