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 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++ {