etorreborre/specs2

`setSeed` for scalacheck props doesn't replicate results

Closed this issue · 2 comments

Sorry to come with another scalacheck bug :(

"Props" should {
  "repeat themselves" in prop { (x: Int) =>
    println(x)
    ok
  }.setSeed("zfry0jm3tkrfnfe39gCAm-xauJ69rEGWB9r-AZXiaiO=")
}

Running this twice gets completely different results (not just the order, but the actual Ints generated). I tried adding sequential in case it makes a difference.

Thanks for putting up with my mistakes. After all this time I did not really understand how parameters were used in ScalaCheck

Not at all! Just tried RC-21 and it's perfect ❤️ thank you for another blazing fast fix! Seriously, much appreciated :)