Skip to content

Commit

Permalink
fix shuffle (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan authored Oct 3, 2018
1 parent a720620 commit 075e333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon-chain/utils/shuffle.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func ShuffleIndices(seed common.Hash, validatorList []uint32) ([]uint32, error)
swapPos := swapNum%remaining + i
validatorList[i], validatorList[swapPos] = validatorList[swapPos], validatorList[i]
}
hashSeed = blake2b.Sum512(seed[:])
}
return validatorList, nil
}
Expand Down

0 comments on commit 075e333

Please sign in to comment.