Skip to content

Commit

Permalink
Remove unused values
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Apr 10, 2024
1 parent 693902d commit 7504f4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/random.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ object Arbitrary extends Derivation[Arbitrary]:
given double(using distribution: Distribution): Arbitrary[Double] = distribution.transform(_)

inline def join[DerivationType <: Product: ProductReflection]: Arbitrary[DerivationType] = random =>
given seed: Seed = random[Seed]()
stochastic(using summonInline[RandomNumberGenerator]):
construct { [FieldType] => arbitrary => arbitrary.from(summon[Random]) }

inline def split[DerivationType: SumReflection]: Arbitrary[DerivationType] = random =>
given seed: Seed = random[Seed]()
stochastic(using summonInline[RandomNumberGenerator]):
delegate(variantLabels(random.long().abs.toInt%variantLabels.length)):
[VariantType <: DerivationType] => arbitrary => arbitrary.from(summon[Random])
Expand Down

0 comments on commit 7504f4d

Please sign in to comment.