girc-atomic/util.go

12 lines
163 B
Go
Raw Normal View History

2021-10-03 12:06:48 +00:00
package girc
import (
"math/rand"
"time"
)
func randSleep() {
rand.Seed(time.Now().UnixNano())
2021-11-26 16:13:54 +00:00
time.Sleep(time.Duration(rand.Intn(25)) * time.Millisecond)
2021-10-03 12:06:48 +00:00
}