Avoids using format to write hex-encoded strings.

This commit is contained in:
Vitor Pamplona
2026-03-15 11:03:50 -04:00
parent a21e38f428
commit 2c91fdea15
3 changed files with 11 additions and 9 deletions
@@ -213,6 +213,6 @@ object NostrConnectLoginUseCase {
private fun generateSecret(): String {
val bytes = ByteArray(32)
SecureRandom().nextBytes(bytes)
return bytes.joinToString("") { "%02x".format(it) }
return bytes.toHexKey()
}
}