diff options
Diffstat (limited to 'src/dotnet-library/scala/Random.scala')
-rw-r--r-- | src/dotnet-library/scala/Random.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotnet-library/scala/Random.scala b/src/dotnet-library/scala/Random.scala index 45e3d6619d..2df7cb5eb2 100644 --- a/src/dotnet-library/scala/Random.scala +++ b/src/dotnet-library/scala/Random.scala @@ -25,7 +25,7 @@ class Random(self0: System.Random) { def this(seed: Int) = this(new System.Random(seed)) /** Creates a new random number generator. */ - def this() = this(Math.abs(System.Environment.TickCount)) + def this() = this(new System.Random(System.Environment.TickCount)) /** Returns the next pseudorandom, uniformly distributed boolean value * from this random number generator's sequence. |