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

Get rid of math/rand in favor of math/rand/v2 #49294

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

espadolini
Copy link
Contributor

This PR replaces all uses of math/rand with math/rand/v2 save for a test that's currently using a fixed seed and what seems to be fixed inputs; all other occurrences of dedicated math/rand sources used with nondeterministic inputs or using the time as a seed were replaced with the appropriate global math/rand/v2 construction or crypto/rand.

Should wait for (and include) gravitational/teleport.e#5542

@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log database-access Database access related issues and PRs desktop-access kubernetes-access size/sm tctl tctl - Teleport admin tool labels Nov 20, 2024
@espadolini espadolini added no-changelog Indicates that a PR does not require a changelog entry and removed kubernetes-access tctl tctl - Teleport admin tool database-access Database access related issues and PRs desktop-access audit-log Issues related to Teleports Audit Log labels Nov 21, 2024
@espadolini espadolini enabled auto-merge November 21, 2024 12:41
@espadolini espadolini added this pull request to the merge queue Nov 21, 2024
Merged via the queue into master with commit bcbfa81 Nov 21, 2024
42 checks passed
@espadolini espadolini deleted the espadolini/math-rand-v2 branch November 21, 2024 13:15
@public-teleport-github-review-bot

@espadolini See the table below for backport results.

Branch Result
branch/v17 Failed

espadolini added a commit that referenced this pull request Nov 21, 2024
* Get rid of math/rand in favor of math/rand/v2

* Update retryutils to use rand.N

* Update e ref
github-merge-queue bot pushed a commit that referenced this pull request Nov 21, 2024
* Get rid of math/rand in favor of math/rand/v2

* Update retryutils to use rand.N

* Update e ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants