Clean up useless functions, only keep the basic function Deal and the function DealIntoHand which will be used by Priority and Fairness. Improve some comments for constants and functions. Introduce Dealer to combine parameters and methods into a whole. Use fixed-size slice to improve performance. Use math.Ceil and math.Log2 to calculate required entropy bits. Make the given hand adaptive to handSize in DealIntoHand. Signed-off-by: Bruce Ma <brucema19901024@gmail.com> Kubernetes-commit: 7a3ca070cdd9804a22bf5db8a99576b09fc52484 |
||
|---|---|---|
| .. | ||
| shufflesharding.go | ||
| shufflesharding_test.go | ||