Skip to content

Commit 52bd3fa

Browse files
typo
1 parent d2ea250 commit 52bd3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/hash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func NameHashSHAKE128Base32(names ...string) string {
9898
name := strings.Join(names, "/")
9999

100100
// Desired output length = 8 chars
101-
// 8 chars * 5 bit (base32) / 8 bit per byte = 5 byte
101+
// 8 chars * 5 bit (base32) / 8 bits per byte = 5 bytes
102102
hash := sha3.SumSHAKE128([]byte(name), 5)
103103

104104
return base32.NewEncoding(Base32EncodeStdLowerCase).WithPadding(base32.NoPadding).EncodeToString(hash)

0 commit comments

Comments
 (0)