use rand.Seed() in init() to properly randomize
This commit is contained in:
parent
f169aaad6f
commit
b49099e075
@ -216,3 +216,7 @@ func (irc *Connection) setupCallbacks() {
|
||||
irc.nickcurrent = e.Arguments[0]
|
||||
})
|
||||
}
|
||||
|
||||
func init() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user