ref: f5168ddecc361ecc1bc4058cba43593a743b18bb
parent: 2b161b5a8e1292b5bc0dd6b261e5c1ab26d9addf
author: qwx <qwx@sciops.net>
date: Sat Sep 3 00:08:06 EDT 2022
hash/knr: oops!
--- a/hash/knr.c
+++ b/hash/knr.c
@@ -12,7 +12,7 @@
for(h=0, c=*s++; c!=0; c=*s++)
h = c + 31 * h;
- return h;
+ return h % Hashsz;
}
void *