mirror of
https://github.com/ouchadam/small-talk.git
synced 2024-12-22 16:01:17 +01:00
fixing random device id generator starting with the same values
This commit is contained in:
parent
19724ea5b3
commit
5153ac08c0
@ -521,8 +521,7 @@ internal class AndroidImageContentReader(private val contentResolver: ContentRes
|
||||
|
||||
internal class SmallTalkDeviceNameGenerator : DeviceDisplayNameGenerator {
|
||||
override fun generate(): String {
|
||||
val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9')
|
||||
val randomIdentifier = (1..4).map { allowedChars.random() }.joinToString("")
|
||||
val randomIdentifier = (('A'..'Z') + ('a'..'z') + ('0'..'9')).shuffled().take(4).joinToString("")
|
||||
return "SmallTalk Android ($randomIdentifier)"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user