mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #160] Audit: Remove deprecated rand.Seed usage (Go 1.20+) #42
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/160
Description
The codebase uses
rand.Seed(time.Now().UnixNano())ininternal/asc/client_core.go:21, which is deprecated since Go 1.20. The random package is now auto-seeded.Impact
Location
internal/asc/client_core.go:21:Fix
Remove the
init()function entirely since Go 1.20+ auto-seeds the random package.Severity
Critical
@rudrankriyam commented on GitHub (Jan 25, 2026):
Closed via #170.