This also improves randomness by avoiding to reinitialize the random number generator repeatedly from a seed based on the current time. Typically, if the number generator is reinitialized repeatedly at non-random times (like multiple times in a row), then generated numbers have a higher chance of repeating. The Kotlin Random object is only initialized once, using the best seed available for the current Android version. |
||
|---|---|---|
| .. | ||
| androidTest/java/com/keylesspalace/tusky | ||
| blue/res | ||
| green/res | ||
| main | ||
| test/java | ||