This commit is contained in:
lkxiaolou 2020-03-03 18:47:13 +08:00
parent c7ca2c1df4
commit e70787b25b

View File

@ -84,10 +84,10 @@ public class Instances implements Record {
sb.append(",");
}
if (MESSAGE_DIGEST_LOCAL.get() != null) {
MessageDigest messageDigest = MESSAGE_DIGEST_LOCAL.get();
if (messageDigest != null) {
checksum = new BigInteger(1,
MESSAGE_DIGEST_LOCAL.get().digest((sb.toString()).getBytes(Charset.forName("UTF-8"))))
.toString(16);
messageDigest.digest((sb.toString()).getBytes(Charset.forName("UTF-8")))).toString(16);
} else {
checksum = RandomStringUtils.randomAscii(32);
}