Skip to content

Conversation

@stefanhaller
Copy link
Collaborator

  • PR Description

Fix a linter warning that I get locally. No idea why it doesn't also show up on CI.

SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been
available since Go 1.0: Programs that call Seed and then expect a specific
sequence of results from the global random source (using functions such as Int)
can be broken when a dependency changes how much it consumes from the global
random source. To avoid such breakages, programs that need a specific result
sequence should use NewRand(NewSource(seed)) to obtain a random generator that
other packages cannot access. (staticcheck)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2023

Uffizzi Preview deployment-19434 was deleted.

@jesseduffield jesseduffield merged commit 4b67a45 into jesseduffield:master Mar 20, 2023
@jesseduffield
Copy link
Owner

Nice one

@stefanhaller stefanhaller deleted the fix-deprecated-rand-seed branch March 20, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants