diff --git a/core/src/main/kotlin/com/r3corda/core/testing/Generators.kt b/core/src/main/kotlin/com/r3corda/core/testing/Generators.kt index a294a409f0..3f98a4e7af 100644 --- a/core/src/main/kotlin/com/r3corda/core/testing/Generators.kt +++ b/core/src/main/kotlin/com/r3corda/core/testing/Generators.kt @@ -94,6 +94,6 @@ val durationGenerator = generator { random, status -> } val timestampGenerator = generator { random, status -> - Timestamp(InstantGenerator().generate(random, status), DurationGenerator().generate(random, status)) + Timestamp(instantGenerator.generate(random, status), durationGenerator.generate(random, status)) }