Skip to content

refactor: remove deprecated rand.Seed from plugin server init - #361

Closed
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/remove-deprecated-rand-seed`
Closed

tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/remove-deprecated-rand-seed`

Conversation

@tenthirtyam

Copy link
Copy Markdown
Contributor

Description

Go 1.20+ automatically seeds the global random number generator, making the manual rand.Seed(time.Now().UTC().UnixNano()) call in init() unnecessary.

Removes the init function along with its unused imports and the now-obsolete TestPluginServerRandom test.

Rollback Plan

Revert commit.

Changes to Security Controls

None

@tenthirtyam
tenthirtyam requested a review from a team as a code owner September 9, 2026 14:38
Go 1.20+ automatically seeds the global random number generator, making the manual `rand.Seed(time.Now().UTC().UnixNano())` call in `init() `unnecessary.

Removes the `init `function along with its unused imports and the now-obsolete `TestPluginServerRandom` test.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam

Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated cleanup PR: #377. Closing this in favor of that PR per maintainer request.

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.

1 participant