Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!udel!rochester!pt.cs.cmu.edu!speech2.cs.cmu.edu!jgk
From: jgk@speech2.cs.cmu.edu (Joe Keane)
Newsgroups: comp.misc
Subject: Re: Anybody have a checksum algorithm that detects byte-swap?
Message-ID: <2082@pt.cs.cmu.edu>
Date: 27 Jun 88 21:13:40 GMT
References: <735@vsi.UUCP>
Sender: netnews@pt.cs.cmu.edu
Distribution: comp
Organization: Carnegie Mellon Computer Science
Lines: 10

I think you'll be fine with a double checksum:

	while ((c = getchar ()) != EOF)
		sum2 += sum += c;

This is very fast, you can add more sums if you want.  If you're
paranoid you can use a CRC code; there are probably many PD
implementations.

--Joe