Skip to content

Commit 1120524

Browse files
committed
escape gosec check because math/rand is only used for simulation
1 parent 77a3b7b commit 1120524

File tree

9 files changed

+14
-0
lines changed

9 files changed

+14
-0
lines changed

app/sim_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package app
33
import (
44
"encoding/json"
55
"fmt"
6+
7+
/* #nosec */
68
"math/rand"
79
"os"
810
"testing"

app/state.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"fmt"
66
"io"
77
"io/ioutil"
8+
9+
/* #nosec */
810
"math/rand"
911
"time"
1012

app/test_helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"encoding/hex"
66
"encoding/json"
77
"fmt"
8+
9+
/* #nosec */
810
"math/rand"
911
"strconv"
1012
"testing"

x/cronos/module.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7+
8+
/* #nosec */
79
"math/rand"
810

911
// this line is used by starport scaffolding # 1

x/cronos/simulation/genesis.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"encoding/hex"
55
"encoding/json"
66
"fmt"
7+
8+
/* #nosec */
79
"math/rand"
810

911
"github.com/cosmos/cosmos-sdk/types/module"

x/cronos/simulation/genesis_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package simulation_test
22

33
import (
44
"encoding/json"
5+
/* #nosec */
56
"math/rand"
67
"testing"
78

x/cronos/simulation/operations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package simulation
22

33
import (
44
"errors"
5+
/* #nosec */
56
"math/rand"
67

78
"github.com/cosmos/cosmos-sdk/baseapp"

x/cronos/simulation/params.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package simulation
44

55
import (
66
"fmt"
7+
/* #nosec */
78
"math/rand"
89

910
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"

x/cronos/simulation/params_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package simulation_test
22

33
import (
44
"fmt"
5+
/* #nosec */
56
"math/rand"
67
"testing"
78

0 commit comments

Comments
 (0)