Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SI-4664 Make scala.util.Random Serializable

  • Loading branch information...
commit 0b92073a38f9d1823f051ac18173078bfcfafc8a 1 parent f16f4ab
@jedesah jedesah authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/library/scala/util/Random.scala
2  src/library/scala/util/Random.scala
@@ -17,7 +17,7 @@ import scala.language.{implicitConversions, higherKinds}
* @author Stephane Micheloud
-class Random(val self: java.util.Random) {
+class Random(val self: java.util.Random) extends AnyRef with Serializable {
/** Creates a new random number generator using a single long seed. */
def this(seed: Long) = this(new java.util.Random(seed))
Please sign in to comment.
Something went wrong with that request. Please try again.