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