hubRandomHex function

String hubRandomHex(
  1. int nChars
)

Random lowercase hex string of nChars characters (hello nonces).

Implementation

String hubRandomHex(int nChars) =>
    List.generate(nChars, (_) => _random.nextInt(16).toRadixString(16)).join();