Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update math/rand to math/rand/v2 and support go 1.22 #20

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

xrz-cloud
Copy link
Contributor

  1. go 1.22 添加了 std lib math/rand/v2[移除了Source.Seed、Rand.Seed 和顶层 Seed。(意味着像 Int 这样的顶层函数将总是随机播种)],同时解决了一些性能问题
  2. 此更改会导致支持且仅支持go>=1.22
  3. 以本地测试程序可正常运行

@peanut996 peanut996 merged commit e318d79 into peanut996:develop Jun 14, 2024
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