From a0bbc3b13ea566fc671fbd379fa24e61e246a24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Sowa?= Date: Fri, 13 Sep 2024 18:08:36 +0200 Subject: [PATCH] Fixing #279. (#392) --- .../main/scala/pl/iterators/kebs/scalacheck/Generators.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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] {