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