1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Merge pull request #208 from uffy/master

remove redundant rand.Seed
This commit is contained in:
Asim Aslam 2017-10-09 07:32:18 +01:00 committed by GitHub
commit 0703c514a9

View File

@ -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)