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. |
||
---|---|---|
.. | ||
list | ||
media | ||
AccountActivity.kt | ||
AccountFieldAdapter.kt | ||
AccountPagerAdapter.kt | ||
AccountViewModel.kt |