Skip to content

Commit

Permalink
tz: suppress linter errors
Browse files Browse the repository at this point in the history
Tests are perfectly fine with this kind of random data.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
  • Loading branch information
roman-khimov committed Feb 11, 2024
1 parent a139f6a commit f82be93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tz/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestHomomorphism(t *testing.T) {
)

b = make([]byte, 64)
n, err = rand.Read(b)
n, err = rand.Read(b) //nolint:staticcheck // SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used
require.Equal(t, 64, n)
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion tz/sl2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func init() {
rand.Seed(time.Now().UnixNano())
rand.Seed(time.Now().UnixNano()) //nolint:staticcheck // SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0
}

func random() (a *sl2) {
Expand Down

0 comments on commit f82be93

Please sign in to comment.