From 18649b3ef5a32712d02f8bb9036fb68b25539b81 Mon Sep 17 00:00:00 2001 From: ceriel Date: Sat, 7 Feb 1987 00:14:51 +0000 Subject: [PATCH] changed hash function --- util/topgen/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/topgen/hash.c b/util/topgen/hash.c index c8c45826..f0665e90 100644 --- a/util/topgen/hash.c +++ b/util/topgen/hash.c @@ -23,8 +23,8 @@ hash(string) char *string; { if (strcmp(string,"ANY") == 0) return 128; for (sum=i=0,p=string;*p;i += 3) - sum += (*p++)<<(i&07); - return sum % 127; + sum += (*p++)<<(i&03); + return sum % 128; }