Documentation ¶
Index ¶
- func PermuteIndex(hashFn HashFn, rounds uint8, index uint64, listSize uint64, seed [32]byte) uint64
- func ShuffleList[T any](hashFn HashFn, input []T, rounds uint8, seed [32]byte)
- func UnpermuteIndex(hashFn HashFn, rounds uint8, index uint64, listSize uint64, seed [32]byte) uint64
- func UnshuffleList[T any](hashFn HashFn, input []T, rounds uint8, seed [32]byte)
- type HashFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermuteIndex ¶
Permute index, i.e. shuffle an individual list item without allocating a complete list. Returns the index in the would-be shuffled list.
func ShuffleList ¶
Shuffles the list
Types ¶
Click to show internal directories.
Click to hide internal directories.