math

Summit math library.

Contains useful math-y functions, such as UUID generation.

Functions

Name Summary
generate_uuid

Returns a new, random version 4 UUID.

Functions : math

generate_uuid()

Returns a new, random version 4 UUID. If you need a random identifier and need to feel safe that this ID will not be used anywhere else (for example, a database primary key), the UUID returned here will do the trick.

Returns
Type Summary

userdata

The UUID. Call tostring(return_object) to get a Lua string version.