randomStrMd5 static method
获取随机字符串,使用加密库
KRandomUtils.randomStrMd5() => 88edde338ffc1638b10e0ec481c6df18
Implementation
static String randomStrMd5() {
final randomNumber = Random().nextDouble();
final randomBytes = utf8.encode(randomNumber.toString());
return md5.convert(randomBytes).toString();
}