Skip to content

harden: secure retries.go - #917

Open
anupamme wants to merge 1 commit into
OpenRouterTeam:mainfrom
anupamme:fix-repo-go-sdk-retries-crypto-rand
Open

anupamme wants to merge 1 commit into
OpenRouterTeam:mainfrom
anupamme:fix-repo-go-sdk-retries-crypto-rand

Conversation

@anupamme

@anupamme anupamme commented Oct 3, 2026

Copy link
Copy Markdown

Do not use math/rand. Use crypto/rand instead. This is defence-in-depth at internal/utils/retries.go:12 rather than a vulnerability I can show is exploitable here — it makes the failure mode explicit and bounded. Close it freely if the pattern is intentional.

What changed

  • internal/utils/retries.go

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

…ity vulnerability

Automated security fix generated by OrbisAI Security

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant