2019-06-20 13:21:48 -04:00
|
|
|
package input
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
)
|
|
|
|
|
|
|
|
func randomDuration(delay int) time.Duration {
|
2021-04-23 10:42:31 -04:00
|
|
|
return time.Duration(core.Random2(float64(delay)))
|
2019-06-20 13:21:48 -04:00
|
|
|
}
|