Skip to content

Commit

Permalink
fix: remove deprecated function rand.Seed (#12271)
Browse files Browse the repository at this point in the history
Signed-off-by: neosu <neo@tcodestudio.com>
  • Loading branch information
szpnygo authored and sarabala1979 committed Jan 8, 2024
1 parent 35b8b40 commit 852f8a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .golangci.yml
Expand Up @@ -58,8 +58,6 @@ linters-settings:
# G601: Implicit memory aliasing in for loop.
- G601
issues:
exclude:
- "SA1019: rand.Seed has been deprecated since Go 1.20"
exclude-rules:
- path: server/artifacts/artifact_server_test.go
text: "response body must be closed"
4 changes: 0 additions & 4 deletions workflow/util/util.go
Expand Up @@ -602,10 +602,6 @@ func updateSuspendedNode(ctx context.Context, wfIf v1alpha1.WorkflowInterface, h

const letters = "abcdefghijklmnopqrstuvwxyz0123456789"

func init() {
rand.Seed(time.Now().UnixNano())
}

// generates an insecure random string
func randString(n int) string {
b := make([]byte, n)
Expand Down

0 comments on commit 852f8a3

Please sign in to comment.