Fix warning.

This commit is contained in:
Benoit Marty
2023-08-25 14:37:55 +02:00
parent 04bab22f62
commit addb0dc3bc

View File

@@ -26,7 +26,7 @@ fun String.md5() = try {
val digest = MessageDigest.getInstance("md5")
digest.update(toByteArray())
digest.digest()
.joinToString("") { String.format("%02X", it) }
.joinToString("") { String.format(Locale.ROOT, "%02X", it) }
.lowercase(Locale.ROOT)
} catch (exc: Exception) {
// Should not happen, but just in case