Skip to content

Commit 22b369a

Browse files
committed
add MaxDistance variable
1 parent 3fbc33b commit 22b369a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/utility.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const (
1818
MaxId = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
1919
)
2020

21+
var (
22+
MaxDistance = Distance([]byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255})
23+
)
24+
2125
// Hashes a byte slice and returns a 20 byte string.
2226
func SHA1Bytes(b []byte) string {
2327
h := sha1.New()

0 commit comments

Comments
 (0)