Skip to content

Commit

Permalink
Fix rand
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerShor committed Sep 2, 2024
1 parent 97b9a34 commit 0e716d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/dlx/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ func (h *Handler) selectTargetURL(resourceNames []string, resourceTargetURLMap m

switch h.multiTargetStrategy {
case scalertypes.MultiTargetStrategyRandom:
rand.Seed(time.Now().Unix())
return resourceTargetURLMap[resourceNames[rand.Intn(len(resourceNames))]], nil
case scalertypes.MultiTargetStrategyPrimary:
return resourceTargetURLMap[resourceNames[0]], nil
Expand Down

0 comments on commit 0e716d9

Please sign in to comment.