use rand.Seed() in init() to properly randomize

This commit is contained in:
Andy Walker 2015-07-20 16:13:15 -04:00
parent f169aaad6f
commit b49099e075

View File

@ -216,3 +216,7 @@ func (irc *Connection) setupCallbacks() {
irc.nickcurrent = e.Arguments[0] irc.nickcurrent = e.Arguments[0]
}) })
} }
func init() {
rand.Seed(time.Now().UnixNano())
}