Compute a short, deterministic hash suffix from a URL path string.
Used to generate collision-resistant dok_id values for documents
fetched from government or GitHub URLs.
The hash is a simple DJB2-style left-shift-and-add over each character,
rendered in base-36. A leading - (from negative ints) is replaced with n.
Compute a short, deterministic hash suffix from a URL path string. Used to generate collision-resistant
dok_idvalues for documents fetched from government or GitHub URLs.The hash is a simple DJB2-style left-shift-and-add over each character, rendered in base-36. A leading
-(from negative ints) is replaced withn.