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.
Arbitrary
SystemTime
s are generated based on arbitraryDuration
s by adding or subtracting fromUNIX_EPOCH
. If we happen to generate bigDuration
s, this could cause an overflow.This change avoids this problem by resorting to ever smaller durations in case of an overflow.
Fixes #321.