32bit Hash: Difference between revisions
Jump to navigation
Jump to search
m add the {{LSL Header}} - all these {{LSL Examples}} should include that header |
m add Note: The Seedable_PRNG example presents MD5 of MD5 of MD5 of ... as pseudo-random numbers |
||
| Line 8: | Line 8: | ||
} | } | ||
</pre> | </pre> | ||
Note: The [[Seedable_PRNG]] example presents MD5 of MD5 of MD5 of ... as pseudo-random numbers | |||
{{LSLC|Examples|32bit Hash}} | {{LSLC|Examples|32bit Hash}} | ||
Revision as of 20:22, 2 October 2007
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Here's a function to turn a UUID into a integer.
integer keytoint(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