From 2ff44f2c645de6549a08e1dad409514963487635 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 24 Sep 2024 09:29:58 +0200 Subject: [PATCH] fixup! pack-objects: add --full-name-hash option Update to the latest iteration of https://github.com/gitgitgadget/git/pull/1785. Signed-off-by: Johannes Schindelin --- pack-objects.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pack-objects.h b/pack-objects.h index 50097552d0..88360aa3e8 100644 --- a/pack-objects.h +++ b/pack-objects.h @@ -216,9 +216,10 @@ static inline uint32_t pack_full_name_hash(const char *name) return 0; /* - * Just do the dumbest thing possible: add random multiples of a - * large prime number with a binary shift. Goal is not cryptographic, - * 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 + * uniformly distributed. */ while ((c = *name++) != 0) { hash += c * bigp;