Skip to content

Commit

Permalink
simulators/ethereum/engine: Handle zero HIVE_RANDOM_SEED
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Nov 10, 2023
1 parent d4d525c commit 6aee1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulators/ethereum/engine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func makeRunner(tests []test.Spec, nodeType string) func(t *hivesim.T) {
if val, ok := os.LookupEnv("HIVE_RANDOM_SEED"); ok {
if p, err := strconv.Atoi(val); err != nil {
t.Logf("Warning: invalid HIVE_RANDOM_SEED value %q", val)
} else {
} else if p > 0 {
random_seed = int64(p)
}
}
Expand Down

0 comments on commit 6aee1e8

Please sign in to comment.