help - why is this no work?!
DunbarX at aol.com
DunbarX at aol.com
Thu May 14 09:13:15 EDT 2009
I am new at this, but "byte" is not native to rev, and you have not defined
it.
Craig newman
In a message dated 5/14/09 3:06:49 AM, shaosean at wehostmacs.com writes:
> on mouseUp
> constant kData = "M"
> constant k32 = 4294967296
> constant kPrime = 16777619
> local tHash = 2166136261
>
> repeat for each byte tByte in kData
> put (tHash * kPrime) MOD k32 into tHash
> put tHash bitXor byteToNum(tByte) into tHash
> end repeat
>
> put format("%08s", baseConvert(tHash, 10, 16))
> end mouseUp
>
>
> gives me 0x050C5D6D
> yet _EVERY_ program I use to compute the FNV1-32 hash gives me
> 0x050C5D52 for the answer
>
> The math is simple yet it is not giving the correct answer and I have
> wasted the last two and a half days on this.. *sigh*
>
>
> http://isthe.com/chongo/tech/comp/fnv/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
**************
Recession-proof vacation ideas. Find free things to do in
the U.S.
(http://travel.aol.com/travel-ideas/domestic/national-tourism-week?ncid=emlcntustrav00000002)
More information about the use-livecode
mailing list