Posted 24 February 2015 - 04:00 PM
can anyone turn:
the reason i cant is im not good in this language. i'd give the first person to do it, a virtual cookie
uint32_t hash, i;
for(hash = i = 0; i < len; ++i)
{
hash += key[i];
hash += (hash << 10);
hash ^= (hash >> 6);
}
hash += (hash << 3);
hash ^= (hash >> 11);
hash += (hash << 15);
return hash;
into lua? its the 'jenkin's hash, which im going to use in a program, but i just…cant'the reason i cant is im not good in this language. i'd give the first person to do it, a virtual cookie