quickcheck
quickcheck copied to clipboard
Make Arbitrary::arbitrary for SystemTime not panic
Arbitrary SystemTimes are generated based on arbitrary Durations by adding or subtracting from UNIX_EPOCH. If we happen to generate big Durations, this could cause an overflow.
This change avoids this problem by resorting to ever smaller durations in case of an overflow.
Fixes #321.