Fix warning.
This commit is contained in:
parent
d8459093a5
commit
3a8eefc927
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue