choose random server when many given instead always choosing the last #9

Closed
wants to merge 1 commit into from

4 participants

@shoki

seed the random number generator befor using it avoids always generating the
same "random" number.

Andre fix always choosing the last server when many given
seed the random number generator befor using it avoids always generating the
same "random" number.
76b09a9
@dgryski

Using crypto/rand and draining the system entropy pool is probably overkill here. We really just need a "rand.Seed(time.Now().UnixNano())" once at startup time.

@cespare

@dgryski Yeah I like this more as well. Implemented in #28.

@mreiferson

done in #28

@mreiferson mreiferson closed this Mar 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment