add util.go
This commit is contained in:
parent
01ce96b07a
commit
4c1d73dcbd
11
util.go
Normal file
11
util.go
Normal 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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user