From b92130eeee4070340a80e1025b07d43c849275c3 Mon Sep 17 00:00:00 2001 From: Uffy Date: Mon, 9 Oct 2017 14:22:15 +0800 Subject: [PATCH] remove redundant rand.Seed --- selector/default.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/selector/default.go b/selector/default.go index 524cbfe8..4a35c00a 100644 --- a/selector/default.go +++ b/selector/default.go @@ -1,9 +1,6 @@ package selector import ( - "math/rand" - "time" - "github.com/micro/go-micro/registry" ) @@ -11,10 +8,6 @@ type defaultSelector struct { so Options } -func init() { - rand.Seed(time.Now().Unix()) -} - func (r *defaultSelector) Init(opts ...Option) error { for _, o := range opts { o(&r.so)