remove redundant rand.Seed

This commit is contained in:
Uffy 2017-10-09 14:22:15 +08:00
parent e0e4596be0
commit b92130eeee

View File

@ -1,9 +1,6 @@
package selector package selector
import ( import (
"math/rand"
"time"
"github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry"
) )
@ -11,10 +8,6 @@ type defaultSelector struct {
so Options so Options
} }
func init() {
rand.Seed(time.Now().Unix())
}
func (r *defaultSelector) Init(opts ...Option) error { func (r *defaultSelector) Init(opts ...Option) error {
for _, o := range opts { for _, o := range opts {
o(&r.so) o(&r.so)