Skip to content

Commit 2ff44f2

Browse files
committed
fixup! pack-objects: add --full-name-hash option
Update to the latest iteration of gitgitgadget#1785. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 02d577f commit 2ff44f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pack-objects.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,10 @@ static inline uint32_t pack_full_name_hash(const char *name)
216216
return 0;
217217

218218
/*
219-
* Just do the dumbest thing possible: add random multiples of a
220-
* large prime number with a binary shift. Goal is not cryptographic,
221-
* but generally uniformly distributed.
219+
* Do the simplest thing that will resemble pseudo-randomness: add
220+
* random multiples of a large prime number with a binary shift.
221+
* The goal is not to be cryptographic, but to be generally
222+
* uniformly distributed.
222223
*/
223224
while ((c = *name++) != 0) {
224225
hash += c * bigp;

0 commit comments

Comments
 (0)