fix random selector
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -22,7 +22,7 @@ func (r *random) Select(routes []string, opts ...selector.SelectOption) (selecto | |||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		// select a random route from the slice | 		// select a random route from the slice | ||||||
| 		return routes[rand.Intn(len(routes)-1)] | 		return routes[rand.Intn(len(routes))] | ||||||
| 	}, nil | 	}, nil | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user