karelpeeters
05/25/2019, 9:40 AMkotlin.random.Random
? I don't want to use the Random.Default
since this is in a multithreaded context. The docs (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.random/-random/index.html) say
To get a seeded instance of random generator use Random function.But that
Random
function just links back to the same page. Am I missing something?elizarov
05/25/2019, 11:09 AMRandom.Default
.karelpeeters
05/25/2019, 11:10 AMelizarov
05/25/2019, 11:13 AMelizarov
05/25/2019, 11:15 AMkarelpeeters
05/25/2019, 11:24 AMilya.gorbunov
05/25/2019, 12:18 PMThreadLocalRandom
on JDK 8+ and if you have kotlin-stdlib-jdk8 in dependencies.karelpeeters
05/25/2019, 12:49 PM