diff --git a/scalacheck/src/main/scala/pl/iterators/kebs/scalacheck/Generators.scala b/scalacheck/src/main/scala/pl/iterators/kebs/scalacheck/Generators.scala index 79f66bb8..260d13bb 100644 --- a/scalacheck/src/main/scala/pl/iterators/kebs/scalacheck/Generators.scala +++ b/scalacheck/src/main/scala/pl/iterators/kebs/scalacheck/Generators.scala @@ -1,11 +1,12 @@ package pl.iterators.kebs.scalacheck -import org.scalacheck.Arbitrary +import org.scalacheck.rng.Seed +import org.scalacheck.{Arbitrary, Gen} trait Generator[T] extends CommonArbitrarySupport { def ArbT: Arbitrary[T] - def generate: T = ArbT.arbitrary.sample.get + def generate: T = ArbT.arbitrary.pureApply(Gen.Parameters.default, Seed.random()) } trait AllGenerators[T] {