Skip to content

Commit

Permalink
Update BEP131.md
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 authored Apr 13, 2022
1 parent d55a147 commit 620b16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BEP131.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Function Select(cabinet, candidate, M)
Function Shuffle(validators, limit)
n = len(validators)
for i <- 0 to limit-1
idx = keccak256(epochNumber+validators[i].consensusAddr) mod n
idx = keccak256(epochNumber, i) mod n
// Do swap
validators[i], validators[idx] = validators[idx], validators[i]
```
Expand Down

0 comments on commit 620b16b

Please sign in to comment.