Replace time.After with a timer created only once for a function call. #1966
GitHub Advanced Security / gosec
failed
Apr 20, 2026 in 4s
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.
Annotations
Check failure on line 160 in pkg/node/peers/score_selector.go
Code scanning / gosec
Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error
Check failure on line 968 in pkg/proto/proto.go
Code scanning / gosec
Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error
Loading