diff --git a/selector/random/random.go b/selector/random/random.go index c048e2be..b5d92970 100644 --- a/selector/random/random.go +++ b/selector/random/random.go @@ -22,7 +22,7 @@ func (r *random) Select(routes []string, opts ...selector.SelectOption) (selecto } // select a random route from the slice - return routes[rand.Intn(len(routes)-1)] + return routes[rand.Intn(len(routes))] }, nil }