package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Functions

NewDealer will create a Dealer with the given deckSize and handSize, will return error when deckSize or handSize is invalid as below.
RequiredEntropyBits makes a quick and slightly conservative estimate of the number of bits of hash value that are consumed in shuffle sharding a deck of the given size to a hand of the given size.

# Constants

MaxHashBits is the max bit length which can be used from hash value.

# Structs

Dealer contains some necessary parameters and provides some methods for shuffle sharding.