mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: fix random test generator early terminate
This commit is contained in:
parent
d76efbb9be
commit
0ca92e97ec
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ const (
|
|||
func (randTest) Generate(r *rand.Rand, size int) reflect.Value {
|
||||
var finishedFn = func() bool {
|
||||
size--
|
||||
return size > 0
|
||||
return size == 0
|
||||
}
|
||||
return reflect.ValueOf(generateSteps(finishedFn, r))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue