DurationBetween generates a random duration in the range of [lowerLimit, upperLimit).
(lowerLimit, upperLimit time.Duration)
| 9 | |
| 10 | // DurationBetween generates a random duration in the range of [lowerLimit, upperLimit). |
| 11 | func DurationBetween(lowerLimit, upperLimit time.Duration) time.Duration { |
| 12 | return time.Duration(IntBetween(int(lowerLimit), int(upperLimit))) |
| 13 | } |
| 14 | |
| 15 | func Hex(length int) string { |
| 16 | bytes := make([]byte, length) |
searching dependent graphs…