diff --git a/main.go b/main.go index fc02136..d451142 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,12 @@ func main() { authResult := login(basePath, username, password) subscriptions := getSubscriptions(basePath, authResult.Token) + // randomize subscription order + for i := range subscriptions { + j := rand.IntN(i + 1) + subscriptions[i], subscriptions[j] = subscriptions[j], subscriptions[i] + } + for i := range subscriptions { fmt.Println(subscriptions[i].Name) visit(basePath+subscriptions[i].Url, authResult.Token)