generateNonce function

String generateNonce()

生成32位唯一字符串

Implementation

String generateNonce() {
  int timestamp = getTimeStamp();
  int randomNumber = generateRandomNumber(6);
  return '$timestamp$randomNumber'.md5() ?? '';
}