File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Sources/DevTesting/Random Value Generation Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11# DevTesting Changelog
22
3+ ## 1.5.0: October 22, 2025
4+
5+ The ` Date.random(in:using:) ` functions now use ` BinaryFloatingPoint.randomPrintable(in:using:) ` to
6+ generate time intervals. This should lead to greater reliability when converting the time intervals
7+ of generated dates into strings.
8+
9+
310## 1.4.0: October 12, 2025
411
512` Stub ` and ` ThrowingStub ` now conform to ` Observable ` . The only property that is tracked is
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ extension Date {
2121 let lowerBound = range. lowerBound. timeIntervalSinceReferenceDate
2222 let upperBound = range. upperBound. timeIntervalSinceReferenceDate
2323 return Date (
24- timeIntervalSinceReferenceDate: . random (
24+ timeIntervalSinceReferenceDate: . randomPrintable (
2525 in: lowerBound ..< upperBound,
2626 using: & generator
2727 )
@@ -42,7 +42,7 @@ extension Date {
4242 let lowerBound = range. lowerBound. timeIntervalSinceReferenceDate
4343 let upperBound = range. upperBound. timeIntervalSinceReferenceDate
4444 return Date (
45- timeIntervalSinceReferenceDate: . random (
45+ timeIntervalSinceReferenceDate: . randomPrintable (
4646 in: lowerBound ... upperBound,
4747 using: & generator
4848 )
You can’t perform that action at this time.
0 commit comments