newRequestId static method
A fresh request id: 16 random bytes, hex encoded.
Implementation
static String newRequestId() {
final random = Random.secure();
final bytes = List<int>.generate(16, (_) => random.nextInt(256));
return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();
}