Make Random implementations serializable (KT-25571)
Make Random.Default, XorWowRandom, and wrapper classes for JDK Random implement Serializable interface. Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
This commit is contained in:
committed by
GitHub
parent
38967f208e
commit
00506a75d3
@@ -88,7 +88,7 @@ public abstract class Random {
|
||||
|
||||
public open fun nextLong(from: kotlin.Long, until: kotlin.Long): kotlin.Long
|
||||
|
||||
public companion object of Random Default : kotlin.random.Random {
|
||||
public companion object of Random Default : kotlin.random.Random, kotlin.io.Serializable {
|
||||
public open override fun nextBits(bitCount: kotlin.Int): kotlin.Int
|
||||
|
||||
public open override fun nextBoolean(): kotlin.Boolean
|
||||
|
||||
@@ -88,7 +88,7 @@ public abstract class Random {
|
||||
|
||||
public open fun nextLong(from: kotlin.Long, until: kotlin.Long): kotlin.Long
|
||||
|
||||
public companion object of Random Default : kotlin.random.Random {
|
||||
public companion object of Random Default : kotlin.random.Random, kotlin.io.Serializable {
|
||||
public open override fun nextBits(bitCount: kotlin.Int): kotlin.Int
|
||||
|
||||
public open override fun nextBoolean(): kotlin.Boolean
|
||||
|
||||
Reference in New Issue
Block a user