distance

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Max = 4294967295
)

Variables

This section is empty.

Functions

func BySalt

func BySalt(x, y, salt []byte) uint32

BySalt returns the distance (uint32) between x and y by xoring the hash of x and y + salt xor(hash(x), hash(y+salt))[:4].

Types

This section is empty.

Jump to

Keyboard shortcuts

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