更新 UI
This commit is contained in:
10
app/src/main/java/com/aiosman/riderpro/Utils.kt
Normal file
10
app/src/main/java/com/aiosman/riderpro/Utils.kt
Normal file
@@ -0,0 +1,10 @@
|
||||
package com.aiosman.riderpro
|
||||
|
||||
object Utils {
|
||||
fun generateRandomString(length: Int): String {
|
||||
val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9')
|
||||
return (1..length)
|
||||
.map { allowedChars.random() }
|
||||
.joinToString("")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user