client.go | 18 ------------------ diff --git a/client.go b/client.go index 4b0b1a25b101dbb063c69f458d6a913d7b906528..d0d34ca8ef4be6ef862836ccabd88f8fc705756f 100644 --- a/client.go +++ b/client.go @@ -9,7 +9,6 @@ "errors" "fmt" "io" "log" - mathRand "math/rand" "net" "net/url" "strconv" @@ -1379,23 +1378,6 @@ storageOpener: cl.defaultStorage, maxEstablishedConns: defaultEstablishedConnsPerTorrent, } return -} - -func init() { - // For shuffling the tracker tiers. - mathRand.Seed(time.Now().Unix()) -} - -type trackerTier []string - -// The trackers within each tier must be shuffled before use. -// http://stackoverflow.com/a/12267471/149482 -// http://www.bittorrent.org/beps/bep_0012.html#order-of-processing -func shuffleTier(tier trackerTier) { - for i := range tier { - j := mathRand.Intn(i + 1) - tier[i], tier[j] = tier[j], tier[i] - } } // A file-like handle to some torrent data resource.