Skip to content

Commit 5cca871

Browse files
authored
Merge pull request #468 from hedgehogqa/start-with-random-seed
Use different seed for each property
2 parents 1dce376 + 584f279 commit 5cca871

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Hedgehog/Property.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ module Property =
480480
/// The report includes the number of tests run, discards, and failure information with shrunk counterexamples.
481481
/// This blocks until all tests complete.
482482
let reportWith (config : IPropertyConfig) (p : Property<unit>) : Report =
483-
p |> reportWith' PropertyArgs.init config
483+
p |> reportWith' (PropertyArgs.init ()) config
484484

485485
/// Runs a property test with default configuration and returns a detailed report.
486486
/// By default, runs 100 tests. This blocks until all tests complete.
@@ -629,7 +629,7 @@ module Property =
629629
/// This is non-blocking and properly handles async properties without blocking threads.
630630
/// Use this when testing async code or when you need non-blocking test execution.
631631
let reportAsyncWith (config : IPropertyConfig) (p : Property<unit>) : Async<Report> =
632-
p |> reportWithAsync' PropertyArgs.init config
632+
p |> reportWithAsync' (PropertyArgs.init ()) config
633633

634634
/// Runs a property test asynchronously with default configuration, returning an F# Async that produces a report.
635635
/// This is non-blocking and properly handles async properties without blocking threads.

src/Hedgehog/PropertyArgs.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type PropertyArgs = internal {
88

99
module PropertyArgs =
1010

11-
let init = {
11+
let init () = {
1212
Language = Language.FSharp
1313
RecheckData = {
1414
Size = 0

0 commit comments

Comments
 (0)