From 7fa434fd77cd447e837a4584b0d82089b74f45d4 Mon Sep 17 00:00:00 2001 From: Ivo Kubjas Date: Fri, 4 Oct 2024 13:20:09 +0000 Subject: [PATCH] chore: ignore gosec false positive --- ecc/bls12-377/shplonk/shplonk_test.go | 2 +- ecc/bls12-381/shplonk/shplonk_test.go | 2 +- ecc/bls24-315/shplonk/shplonk_test.go | 2 +- ecc/bls24-317/shplonk/shplonk_test.go | 2 +- ecc/bn254/shplonk/shplonk_test.go | 2 +- ecc/bw6-633/shplonk/shplonk_test.go | 2 +- ecc/bw6-761/shplonk/shplonk_test.go | 2 +- internal/generator/shplonk/template/shplonk.test.go.tmpl | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ecc/bls12-377/shplonk/shplonk_test.go b/ecc/bls12-377/shplonk/shplonk_test.go index 933349955..9b321fa4e 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 b007b7559..e2295bbe3 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 c97b6dda8..4f7f41f12 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 bd89089b7..33d055815 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 88fa11fc0..d0558c472 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 dcb46ffee..2cc4d27f5 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 1e4ecc2d8..bcdbccea6 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 775995c03..d8ff5b8ad 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++ {