Suite • opensavvy.prepared.suite.random • Random • accessUnsafe
accessUnsafe¶
suspend fun accessUnsafe(): Random
Gives uncontrolled access to the underlying Random
.
Warning. The Kotlin standard library's random generator is not thread-safe. This class wraps it with the necessary synchronization mechanisms. By using accessUnsafe
, you are bypassing them. Incorrect usage of this function may break the random generation and reproducibility guarantees of this class.
In most cases, use
is probably sufficient.