Re: How do you check the equivalency of references?
Re: How do you check the equivalency of references?
- Subject: Re: How do you check the equivalency of references?
- From: Arthur J Knapp <email@hidden>
- Date: Thu, 09 Aug 2001 17:59:55 -0400
>
Date: Thu, 9 Aug 2001 07:58:33 -0700
>
From: Jon Pugh <email@hidden>
>
Subject: Re: How do you check the equivalency of references?
>
... Algorithms to do checksumming are often called
>
hash algorithms.
From the Useless AppleScript Library:
(* A "universal" hash function for strings.
*)
on hash(str, max)
set {a, b, h} to {31415, 27183, 0}
repeat with c in str
set h to (a * h + (ASCII number c)) mod max
end repeat
return h
end hash
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.LateNightSW.com