helpers

package
v0.0.0-...-83e8365 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunkify

func Chunkify[T any](chunkSize int, items []T) [][]T

Given items = []byte("abcdefgh") and chunkSize = 3 function will return [][]byte{{'a', 'b', 'c'}, {'d', 'e', 'f'}, {'g', 'h'}}

func NewPseudoRandomFamilySignature

func NewPseudoRandomFamilySignature(seed int64, rows, cols int) ([][]byte, error)

Use seeded pseudo random number generator to generate signature for CSHAKE hash function family

func Shinglets

func Shinglets[T any](size int, items []T) [][]T

Given items = []byte("abcd") and chunkSize = 3 function will return [][]byte{{'a', 'b', 'c'}, {'b', 'c', 'd'}}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL