type ByteSource … // New returns a new ByteSource from a given slice of bytes. func New(input []byte) *ByteSource { … } func (s *ByteSource) Uint64() uint64 { … } func (s *ByteSource) Int63() int64 { … } func (s *ByteSource) Seed(seed int64) { … } // consumeUint64 reads 8 bytes from the input and convert them to a uint64. It assumes that the the // bytes reader is not empty. func (s *ByteSource) consumeUint64() uint64 { … }