thibaultcha / lua-resty-jit-uuid

Fast and dependency-free UUID library for LuaJIT/ngx_lua
http://thibaultcha.github.io/lua-resty-jit-uuid/
MIT License
206 stars 40 forks source link

perf(uuid) generate v4 UUIDs from a smaller set of rand ints #16

Open p0pr0ck5 opened 5 years ago

p0pr0ck5 commented 5 years ago

Generate V4 UUIDs from various offsets of a 32 bit integer (generated via the existing random call), as opposed to 16 incarnations of an 8 bit integer.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.9%) to 93.333% when pulling 43bc84dfdc69cb2a9e972b42b9b8d91c9f035c1f on p0pr0ck5:32bit-rand into b1d44585308cc37430c2cd5c6e20af0a79565f76 on thibaultcha:master.