add util.go

This commit is contained in:
kayos@tcp.direct 2021-10-03 05:06:48 -07:00
parent 01ce96b07a
commit 4c1d73dcbd

11
util.go Normal file
View File

@ -0,0 +1,11 @@
package girc
import (
"math/rand"
"time"
)
func randSleep() {
rand.Seed(time.Now().UnixNano())
time.Sleep(time.Duration(rand.Intn(50)) * time.Millisecond)
}