crate-crypto / go-eth-kzg

Apache License 2.0
29 stars 22 forks source link

Fix gosec finding #23

Closed jtraglia closed 1 year ago

jtraglia commented 1 year ago

There was one real finding:

internal/utils/utils_test.go:116:22: G601: Implicit memory aliasing in for loop. (gosec)
                if !expected.Equal(&pow) {

This PR fixes it.

As for the other one, we're fine with using math/rand so I disabled that check.

jtraglia commented 1 year ago

The linter failure is fixed in #22. Please merge it first.