Skip to content

Commit 3fd0cef

Browse files
committed
ignore security warnings when picking random ports
1 parent 3daf04b commit 3fd0cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conformance/tests/gateway-dynamic-listeners.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ var GatewayListenerDynamicPorts = suite.ConformanceTest{
198198
}
199199

200200
func nextPort(start, end int, ports sets.Set[int]) int {
201-
port := start + rand.Intn(end-start)
201+
port := start + rand.Intn(end-start) //nolint:gosec
202202
// We want a unique port
203203
for ports.Has(port) {
204-
port = start + rand.Intn(end-start)
204+
port = start + rand.Intn(end-start) //nolint:gosec
205205
}
206206
ports.Insert(port)
207207
return port

0 commit comments

Comments
 (0)