Skip to content

chore: use math/rand/v2 instead of math/rand#363

Merged
mholt merged 3 commits intomasterfrom
math-v2
Feb 13, 2026
Merged

chore: use math/rand/v2 instead of math/rand#363
mholt merged 3 commits intomasterfrom
math-v2

Conversation

@WeidiDeng
Copy link
Member

Similar to 7413.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Weidi! I just noticed one thing I wanted to check on.

"errors"
"fmt"
"math/rand"
"math/rand/v2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should import this as weakrand for consistency with other files. It's a convention that helps ensure readers know the package is not strong enough for cryptographic use. But then again I guess linters do this too, so I dunno.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever! But pretty clear, and thanks for the comment too. LGTM! Thank you Weidi.

@mholt mholt merged commit 0b5e0e9 into master Feb 13, 2026
6 checks passed
@francislavoie francislavoie deleted the math-v2 branch February 13, 2026 21:43
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