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

Fix: update calls to runtime.fastrand to use cheaprand for compatibility with Go 1.22 #4265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aoang
Copy link

@Aoang Aoang commented Mar 11, 2024

Fix: update calls to runtime.fastrand to use cheaprand for compatibility with Go 1.22

In Golang 1.22, the runtime.fastrand method was renamed to cheaprand. This commit updates all occurrences of runtime.fastrand in the project to use the new cheaprand method to maintain compatibility with the latest Golang version and address performance concerns.

Refer: https://gist.github.com/Aoang/3dc06f127f3f54507b7e06b7b6550c28

What this PR does / why we need it:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:

NONE

…ibility with Go 1.22

In Golang 1.22, the `runtime.fastrand` method was renamed to `cheaprand`.
This commit updates all occurrences of `runtime.fastrand` in the project
to use the new `cheaprand` method to maintain compatibility with the latest
Golang version and address performance concerns.

Refer: https://gist.github.com/Aoang/3dc06f127f3f54507b7e06b7b6550c28
@CLAassistant
Copy link

CLAassistant commented Mar 11, 2024

CLA assistant check
All committers have signed the CLA.

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