🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24948

Re: Cleanfeed hashing

#24948
From: Brian Edmonds
Date: Wed, 07 Jan 1998 00:00
24 lines
2234 bytes
Kenneth Herron <kherron@campus.mci.net> writes:
> I've been hacking heavily on cleanfeed and have experimented with
> perl's built-in CRC generator.

Oh, cool, this is going into my filter as we speak. :)

>     $hash = substr($hdr{'__BODY__'}, 0, 8192);
>     $hash =~ tr/A-Z`~!@#$%^&*()_+=[{]}|;:'",<.>?-/a-z./s;
>     $hash = join($;,
> 	'crc', length($hdr{'__BODY__'}) >> 5, unpack('%24S*', $hash));

Why a 24bit CRC of shorts?  Why not 32bit or 31bit?  Why not chars or
longs?

PS: Is this group still an inet group?  Someone's server is putting it
in this thread...

-- 
 o         Brian Edmonds <bedmonds@cs.ubc.ca>, Team Jubal Mech Labs
 \\_/\_,   Moderator: rec.arts.anime.creative, rec.music.info/reviews
(*)   (*)  Are you tired of spam?  Visit http://www.spam.abuse.net/spam/

Technical Details
Message-ID: <374t3f6cjy.fsf@salvator.cs.ubc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <68mj3v$igl$1@shell.monmouth.com> <68mjn1$9m$1@news1.exit109.com> <68muc9$aun$1@shell.monmouth.com> <68ucnc$abl$1@news.campus.mci.net>

Show Full Headers
Complete Article Headers
Message-ID: <374t3f6cjy.fsf@salvator.cs.ubc.ca>
Subject: Re: Cleanfeed hashing
Date: Wed, 07 Jan 1998 00:00:00 +0000
From: Brian Edmonds <bedmonds@cs.ubc.ca>
References: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <68mj3v$igl$1@shell.monmouth.com> <68mjn1$9m$1@news1.exit109.com> <68muc9$aun$1@shell.monmouth.com> <68ucnc$abl$1@news.campus.mci.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 313782576
X-Operating-System: HP-UX B.10.20 A
X-Geek: http://www.cs.ubc.ca/spider/edmonds/doc/geek.html
X-Face: U#?Yq\J(++8?CX?]}on>1Uk~ADR<&~/ysgWjKQv_/>>ziUs,U|$3ENc21.\xFnp2Jy_PB{P ;?<4#]djd_X0lQ^!U;T!p*@|#SHY[#LWx[j{Y_ut-!*!>Xs1qzK`CKlFjSK"2&jx_8OPL1?v<a&?M' !5"JU^*!Ay^w_-)O#l&5}184;wb64[Q0oZ7,OhHvruWg%_M2RQT!En{Ul:Ifx|Ui-Q&NDhjfs(>8Tj .{]KwuoF[WO_:+$8G_o.B}z6/ousUShjs-ek2S_:^4_&=rk^rN:U3g,5
Mime-Version: 1.0 (generated by tm-edit 7.106)
To: kherron@campus.mci.net (Kenneth Herron)
X-PGP-Ox979D0B09: A9 3E 1E CB 86 09 B1 E9 3C 1A 0E F6 49 F9 5D 99
Content-Type: text/plain; charset=US-ASCII
X-Homepage: http://www.cs.ubc.ca/spider/edmonds
X-PGP-Ox6E86B769: This key is obsolete, please discard it.
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Newsgroups: news.software.nntp