use rand.Seed() in init() to properly randomize
This commit is contained in:
1 parent
f169aaad6f
commit
b49099e075
1 file changed
+4
@@ -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