Update CredentialsCacheRepository.kt

This commit is contained in:
Flashdown 2023-09-05 16:37:02 +02:00 committed by GitHub
parent dfc18ea853
commit ab04699611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ class CredentialsCacheRepository @Inject constructor() {
} }
private fun getRandomKey(): String { private fun getRandomKey(): String {
val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9') + '#!$%=?-_.,*:;+~' val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9') + "#!$%=?-_.,@µ*:;+~".toList()
return (1..KEY_LENGTH) return (1..KEY_LENGTH)
.map { allowedChars.random() } .map { allowedChars.random() }
.joinToString("") .joinToString("")