Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: Remove noisy prints of "nextSeed"
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz authored Jul 20, 2020
1 parent 353bcfa commit fb53960
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ val kwikDefaultIterations: Int
?: 200

/**
* Obtain a new seed for used in [forAll]
* Obtain a new seed to be used in [forAll]
*
* Can return a different value at each call
*
* May return the same value at each call
* (if system property 'kwik.seed' or environment variable 'KWIK_ITERATIONS' is set)
*/
fun nextSeed(): Long {
println("nextSeed (kwik.seed: ${getProperty("kwik.seed")})")
return getProperty("kwik.seed")?.toLongOrNull()
?: getEnv("KWIK_ITERATIONS")?.toLongOrNull()
?: Random.nextLong()
Expand Down

0 comments on commit fb53960

Please sign in to comment.