Skip to content

internal/tags: remove deprecated rand.Seed call in test - #188

Merged
th0114nd merged 1 commit into
masterfrom
fix-rand-seed-deprecation
Aug 22, 2026
Merged

internal/tags: remove deprecated rand.Seed call in test#188
th0114nd merged 1 commit into
masterfrom
fix-rand-seed-deprecation

Conversation

@th0114nd

@th0114nd th0114nd commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rand.Seed has been deprecated since Go 1.20 (flagged by staticcheck SA1019 in CI on the zero-alloc-tags stack): the global math/rand source auto-seeds since then, so this call is a no-op.

Test plan

  • go build ./..., go vet ./... clean
  • go test ./internal/tags/... passing

🤖 Generated with Claude Code

rand.Seed has been deprecated since Go 1.20 (staticcheck SA1019): the
global math/rand source is auto-seeded since then, so calling Seed
with a time-based value is a no-op.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@th0114nd
th0114nd merged commit f63d8e5 into master Aug 22, 2026
4 checks passed
@th0114nd
th0114nd deleted the fix-rand-seed-deprecation branch August 22, 2026 03:38
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.

2 participants