diff --git a/ecc/bls12-377/shplonk/shplonk_test.go b/ecc/bls12-377/shplonk/shplonk_test.go index 9333499557..9b321fa4ef 100644 --- a/ecc/bls12-377/shplonk/shplonk_test.go +++ b/ecc/bls12-377/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bls12-381/shplonk/shplonk_test.go b/ecc/bls12-381/shplonk/shplonk_test.go index b007b75590..e2295bbe36 100644 --- a/ecc/bls12-381/shplonk/shplonk_test.go +++ b/ecc/bls12-381/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bls24-315/shplonk/shplonk_test.go b/ecc/bls24-315/shplonk/shplonk_test.go index c97b6dda88..4f7f41f122 100644 --- a/ecc/bls24-315/shplonk/shplonk_test.go +++ b/ecc/bls24-315/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bls24-317/shplonk/shplonk_test.go b/ecc/bls24-317/shplonk/shplonk_test.go index bd89089b78..33d055815e 100644 --- a/ecc/bls24-317/shplonk/shplonk_test.go +++ b/ecc/bls24-317/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bn254/shplonk/shplonk_test.go b/ecc/bn254/shplonk/shplonk_test.go index 88fa11fc0a..d0558c4725 100644 --- a/ecc/bn254/shplonk/shplonk_test.go +++ b/ecc/bn254/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bw6-633/shplonk/shplonk_test.go b/ecc/bw6-633/shplonk/shplonk_test.go index dcb46ffeea..2cc4d27f57 100644 --- a/ecc/bw6-633/shplonk/shplonk_test.go +++ b/ecc/bw6-633/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/ecc/bw6-761/shplonk/shplonk_test.go b/ecc/bw6-761/shplonk/shplonk_test.go index 1e4ecc2d81..bcdbccea65 100644 --- a/ecc/bw6-761/shplonk/shplonk_test.go +++ b/ecc/bw6-761/shplonk/shplonk_test.go @@ -72,7 +72,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ { diff --git a/internal/generator/shplonk/template/shplonk.test.go.tmpl b/internal/generator/shplonk/template/shplonk.test.go.tmpl index 775995c032..d8ff5b8adb 100644 --- a/internal/generator/shplonk/template/shplonk.test.go.tmpl +++ b/internal/generator/shplonk/template/shplonk.test.go.tmpl @@ -55,7 +55,7 @@ func TestOpening(t *testing.T) { nbPolys := 2 sizePoly := make([]int, nbPolys) for i := 0; i < nbPolys; i++ { - sizePoly[i] = rand.Intn(10) + 2 + sizePoly[i] = rand.Intn(10) + 2 //nolint: gosec // G404, no strong PRNG needed here } polys := make([][]fr.Element, nbPolys) for i := 0; i < nbPolys; i++ {