diff --git a/tests/e2e/kubetest2-kops/do/zones.go b/tests/e2e/kubetest2-kops/do/zones.go index 8a63d7b318..4f76c953b9 100644 --- a/tests/e2e/kubetest2-kops/do/zones.go +++ b/tests/e2e/kubetest2-kops/do/zones.go @@ -19,6 +19,7 @@ package do import ( "errors" "math/rand" + "time" ) var allZones = []string{ @@ -46,7 +47,8 @@ func RandomZones(count int) ([]string, error) { return nil, ErrMoreThanOneZone } - n := rand.Int() % len(allZones) + rand.Seed(time.Now().UnixNano()) + n := rand.Intn(1000) % len(allZones) chosenZone := allZones[n] chosenZones := make([]string, 0)