randomHex function

String randomHex(
  1. List<int> bytes
)

随机的十六进制串。

Implementation

String randomHex(List<int> bytes) => bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();