state: fix db random args

This commit is contained in:
SheldonZhong 2019-03-12 11:16:04 +08:00
parent 1a3e25e4c1
commit 9143fa0e0f

View file

@ -296,7 +296,7 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction {
if !action.noAddr { if !action.noAddr {
nameargs = append(nameargs, addr.Hex()) nameargs = append(nameargs, addr.Hex())
} }
for _, i := range action.args { for i := range action.args {
action.args[i] = rand.Int63n(100) action.args[i] = rand.Int63n(100)
nameargs = append(nameargs, fmt.Sprint(action.args[i])) nameargs = append(nameargs, fmt.Sprint(action.args[i]))
} }