Lua-uuid Alternatives
Similar projects and alternatives to lua-uuid
-
AppSignal
AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
-
-
lua-resty-uuid
LuaJIT FFI bindings for libuuid, a DCE compatible Universally Unique Identifier library.
lua-uuid discussion
lua-uuid reviews and mentions
-
Inverting the Xorshift128 random number generator
A word of caution. A few years ago we had a production impact event where customers were getting identical cookies (and so started seeing each others sessions). When I took a look at the code, what I found was that they were doing something very like your code - using a time() based seed and an PRNG.
Whenever we deployed new nginx configs, those servers would roll out and restart, getting _similar_ time() results in the seed. But the individual nginx workers? Their seeds were nearly identical. Not every call to the PRNG was meant for UUIDs, but enough were that disaster was inevitable.
The solution is to use a library that leverages libuuid (via ffi or otherwise). A "native lua" implementation is always going to miss the entropy sources available in your server and generate clashes if it's seeded with time(). (eg https://github.com/Kong/lua-uuid, https://github.com/bungle/lua-resty-uuid)
Stats
Kong/lua-uuid is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of lua-uuid is Lua.