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:
Iaroslav Postovalov
2020-12-31 08:10:28 +07:00
committed by GitHub
parent 38967f208e
commit 00506a75d3
7 changed files with 116 additions and 16 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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