Skip to content

Replace time.After with a timer created only once for a function call. - #1966

Open
alexeykiselev wants to merge 15 commits into
masterfrom
fix-semgrep-issues-2
Open

alexeykiselev wants to merge 15 commits into
masterfrom
fix-semgrep-issues-2

Merge branch 'master' into fix-semgrep-issues-2

732b7b4
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / gosec failed Jul 2, 2026 in 9s

2 new alerts including 2 errors

New alerts in code changed by this pull request

  • 2 errors

Alerts not introduced by this pull request might have been detected because the code changes were too large.

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 160 in pkg/node/peers/score_selector.go

See this annotation in the file changed.

Code scanning / gosec

Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error

Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand)

Check failure on line 968 in pkg/proto/proto.go

See this annotation in the file changed.

Code scanning / gosec

Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error

Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand)