Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: 64-bit hashing function Date: Fri, 25 Apr 2014 04:08:26 -0700 Organization: Canadian Mind Products Lines: 17 Message-ID: <5fgkl9hsqkh0i44cgf1fooa96gutfjivcm@4ax.com> References: <5mvel9lrq0upfvobfbssrait15iicoi6ak@4ax.com> Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: ForteAgent/7.20.32.1218 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:28227 On Wed, 23 Apr 2014 09:57:11 +0100, rossum wrote, quoted or indirectly quoted someone who said : >I usually suggest the FNV hash for this sort of situation: >http://isthe.com/chongo/tech/comp/fnv/ I have posted Java code for the 32 and 64-bit version at http://mindprod.com/jgloss/digest.html The only tricky part is defining a long unsigned magic number. They should show up within the hour. -- Roedy Green Canadian Mind Products http://mindprod.com Computers are like Old Testament gods; lots of rules and no mercy. ~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)