32bit Hash

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Here's a function to turn an UUID into an integer.

integer Key2Integer(string inkey)
{
    return (integer)("0x" + llGetSubString(llMD5String(inkey,0), 0, 7));   
}

Note: The Seedable_PRNG example presents MD5 of MD5 of MD5 of ... as pseudo-random numbers