diff --git a/modules/apps/transfer/module.go b/modules/apps/transfer/module.go index 0daa6dc3bf0..6a33109d6f1 100644 --- a/modules/apps/transfer/module.go +++ b/modules/apps/transfer/module.go @@ -2,9 +2,9 @@ package transfer import ( "context" + "crypto/rand" "encoding/json" "fmt" - "math/rand" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" diff --git a/modules/apps/transfer/simulation/genesis.go b/modules/apps/transfer/simulation/genesis.go index a74277d1671..59ea92d8b24 100644 --- a/modules/apps/transfer/simulation/genesis.go +++ b/modules/apps/transfer/simulation/genesis.go @@ -1,9 +1,9 @@ package simulation import ( + "crypto/rand" "encoding/json" "fmt" - "math/rand" "strings" "github.com/cosmos/cosmos-sdk/types/module" diff --git a/modules/apps/transfer/simulation/genesis_test.go b/modules/apps/transfer/simulation/genesis_test.go index c869d1c7b25..dd324776c53 100644 --- a/modules/apps/transfer/simulation/genesis_test.go +++ b/modules/apps/transfer/simulation/genesis_test.go @@ -1,8 +1,8 @@ package simulation_test import ( + "crypto/rand" "encoding/json" - "math/rand" "testing" "github.com/cosmos/cosmos-sdk/codec" diff --git a/modules/apps/transfer/simulation/params.go b/modules/apps/transfer/simulation/params.go index c7193b47193..48e1c48cab6 100644 --- a/modules/apps/transfer/simulation/params.go +++ b/modules/apps/transfer/simulation/params.go @@ -1,8 +1,8 @@ package simulation import ( + "crypto/rand" "fmt" - "math/rand" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" diff --git a/modules/apps/transfer/simulation/params_test.go b/modules/apps/transfer/simulation/params_test.go index 491fee0d3f3..afca6ddc8e0 100644 --- a/modules/apps/transfer/simulation/params_test.go +++ b/modules/apps/transfer/simulation/params_test.go @@ -1,7 +1,7 @@ package simulation_test import ( - "math/rand" + "crypto/rand" "testing" "github.com/stretchr/testify/require" diff --git a/modules/core/02-client/keeper/keeper_test.go b/modules/core/02-client/keeper/keeper_test.go index 56d7bd75952..1de8ad18738 100644 --- a/modules/core/02-client/keeper/keeper_test.go +++ b/modules/core/02-client/keeper/keeper_test.go @@ -2,7 +2,7 @@ package keeper_test import ( "context" - "math/rand" + "crypto/rand" "testing" "time" diff --git a/modules/core/02-client/simulation/genesis.go b/modules/core/02-client/simulation/genesis.go index ddf592dfad2..e0874f97822 100644 --- a/modules/core/02-client/simulation/genesis.go +++ b/modules/core/02-client/simulation/genesis.go @@ -1,7 +1,7 @@ package simulation import ( - "math/rand" + "crypto/rand" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/modules/core/03-connection/simulation/genesis.go b/modules/core/03-connection/simulation/genesis.go index 746daec042f..56a28cd84e8 100644 --- a/modules/core/03-connection/simulation/genesis.go +++ b/modules/core/03-connection/simulation/genesis.go @@ -1,7 +1,7 @@ package simulation import ( - "math/rand" + "crypto/rand" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/modules/core/04-channel/simulation/genesis.go b/modules/core/04-channel/simulation/genesis.go index 7c11dd6cb55..fb84d33a2b0 100644 --- a/modules/core/04-channel/simulation/genesis.go +++ b/modules/core/04-channel/simulation/genesis.go @@ -1,7 +1,7 @@ package simulation import ( - "math/rand" + "crypto/rand" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" diff --git a/modules/core/module.go b/modules/core/module.go index 0cca3e37f1e..a4dad071dce 100644 --- a/modules/core/module.go +++ b/modules/core/module.go @@ -2,9 +2,9 @@ package ibc import ( "context" + "crypto/rand" "encoding/json" "fmt" - "math/rand" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" diff --git a/modules/core/simulation/genesis.go b/modules/core/simulation/genesis.go index e6decacb26b..286024b6aaa 100644 --- a/modules/core/simulation/genesis.go +++ b/modules/core/simulation/genesis.go @@ -3,9 +3,9 @@ package simulation // DONTCOVER import ( + "crypto/rand" "encoding/json" "fmt" - "math/rand" "github.com/cosmos/cosmos-sdk/types/module" diff --git a/modules/core/simulation/genesis_test.go b/modules/core/simulation/genesis_test.go index 6010f74c20f..3d28c2f0c51 100644 --- a/modules/core/simulation/genesis_test.go +++ b/modules/core/simulation/genesis_test.go @@ -1,8 +1,8 @@ package simulation_test import ( + "crypto/rand" "encoding/json" - "math/rand" "testing" "github.com/cosmos/cosmos-sdk/codec" diff --git a/testing/simapp/helpers/test_helpers.go b/testing/simapp/helpers/test_helpers.go index 9ccecbd976c..f70cef0596a 100644 --- a/testing/simapp/helpers/test_helpers.go +++ b/testing/simapp/helpers/test_helpers.go @@ -1,7 +1,7 @@ package helpers import ( - "math/rand" + "crypto/rand" "time" "github.com/cosmos/cosmos-sdk/client" diff --git a/testing/simapp/sim_test.go b/testing/simapp/sim_test.go index 53263b3794a..695c4087b45 100644 --- a/testing/simapp/sim_test.go +++ b/testing/simapp/sim_test.go @@ -1,9 +1,9 @@ package simapp import ( + "crypto/rand" "encoding/json" "fmt" - "math/rand" "os" "testing" diff --git a/testing/simapp/state.go b/testing/simapp/state.go index 86f20e2b115..ed8bc6bda13 100644 --- a/testing/simapp/state.go +++ b/testing/simapp/state.go @@ -1,11 +1,11 @@ package simapp import ( + "crypto/rand" "encoding/json" "fmt" "io" "io/ioutil" - "math/rand" "time" "github.com/cosmos/cosmos-sdk/codec"