소스 검색

lib/protocol: Add note about non-standard Luhn calculation (#4895)

Skip-check: authors
Iain Barnett 7 년 전
부모
커밋
4d3b5348ae
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/protocol/luhn.go

+ 2 - 0
lib/protocol/luhn.go

@@ -17,6 +17,8 @@ var (
 
 // generate returns a check digit for the string s, which should be composed
 // of characters from the Alphabet a.
+// Doesn't follow the actual Luhn algorithm
+// see https://forum.syncthing.net/t/v0-9-0-new-node-id-format/478/6 for more.
 func (a luhnAlphabet) generate(s string) (rune, error) {
 	factor := 1
 	sum := 0