Skip to content

Commit 774f384

Browse files
Merge pull request #28 from Artoria2e5/patch-1
src/lib/rinchi_hashing: Correct comment about structure of 17-char hash
2 parents 4664342 + 24624d1 commit 774f384

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/rinchi_hashing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ std::string hash17char(const std::string& input)
142142
result += base26_triplet_3(chksum);
143143
result += base26_triplet_4(chksum);
144144
result += base26_dublet_for_bits_56_to_64(chksum);
145-
// chksum[8] = bits 65->...
145+
// chksum[8] = bits 64.. (bit 64 is used twice)
146146
result += base26_triplet_1(&chksum[8]);
147147
#ifdef RINCHI_DEBUG_OUTPUT_HASHING
148148
std::cout << "[#17[" << input << "]#] => " << result << std::endl;
@@ -157,3 +157,4 @@ const std::string HASH_14_EMPTY_STRING = "UHFFFADPSCTJAU";
157157
const std::string HASH_17_EMPTY_STRING = "UHFFFADPSCTJAUYIS";
158158

159159
} // end of namespace
160+

0 commit comments

Comments
 (0)