From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,16016085da246cdf X-Google-Attributes: gid103376,public From: Stephen & Tammy House Subject: Re: Looking for generic hash function Date: 1996/08/21 Message-ID: <321BA84E.693F@ro.com>#1/1 X-Deja-AN: 175571801 references: <4v23jd$mg9@News.Dal.Ca> to: "Robert I. Eachus" content-type: text/plain; charset=us-ascii organization: RENAISSANCE INTERNET SERVICES mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b6 (Win95; I) Date: 1996-08-21T00:00:00+00:00 List-Id: Robert I. Eachus wrote: > > In article <4v23jd$mg9@News.Dal.Ca> grandyre@newton.ccs.tuns.ca (Robert Grandy) writes: > > > The function would return a pretty much random Integer based on its > > generic parameter. I was thinking of using the 'size attribute, Most hash functions are used to map a record into a structure (read array). So the data_type from the example I left before should be the key to the record being stored/retrieved. Your hash will make a nice random number generator, but if the record needed is ever passed by value through the system, you'll never find it.