32bit Hash
Revision as of 09:53, 6 December 2022 by Gwyneth Llewelyn (talk | contribs) (Replaced <source> with <syntaxhighlight>)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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