We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d577f commit 2ff44f2Copy full SHA for 2ff44f2
pack-objects.h
@@ -216,9 +216,10 @@ static inline uint32_t pack_full_name_hash(const char *name)
216
return 0;
217
218
/*
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.
+ * Do the simplest thing that will resemble pseudo-randomness: add
+ * random multiples of a large prime number with a binary shift.
+ * The goal is not to be cryptographic, but to be generally
222
+ * uniformly distributed.
223
*/
224
while ((c = *name++) != 0) {
225
hash += c * bigp;
0 commit comments