• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do you check the equivalency of references?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do you check the equivalency of references?
      • From: John W Baxter <email@hidden>
  • Prev by Date: Applescript newbie asking for advice and direction
  • Next by Date: Re: Scriptmaster XT work with Quark 4.11?
  • Previous by thread: Re: How do you check the equivalency of references?
  • Next by thread: Re: How do you check the equivalency of references?
  • Index(es):
    • Date
    • Thread