Skip to content

Commit

Permalink
fix(runner): Remove deprecated use of rand.Seed
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Jun 8, 2024
1 parent 9f42b40 commit 6446f69
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ func (runner *Runner) randomizePortNumber() (uint, error) {
return 0, fmt.Errorf("Out of ports, won't be able to find a port in configured range")
}

// Set a changing seed
rand.Seed(time.Now().UnixNano())

// Randomize ports within the range
randomPorts := rand.Perm(portRangeSize)

Expand Down

0 comments on commit 6446f69

Please sign in to comment.