Commit Graph

4 Commits

Author SHA1 Message Date
Dvel
368570aaab fix: uuid.lua ensure randomseed() works on both Lua 5.3 and 5.4 #1473 2026-02-06 15:08:16 +08:00
Yuri Sequoia
739a87af0a fix(uuid): resolve duplicate UUID generation by improving random seeding (#1473)
- Moved math.randomseed() from the generation function to the initialization phase.
- Replaced os.time() with a more precise seed (os.time + os.clock) to prevent identical sequences when calls occur within the same second.
2026-02-04 18:42:18 +08:00
Known Rabbit
709e28b1d7 fix(uuid): Improve UUID generation logic with modular arithmetic (#1428) 2025-12-23 16:24:19 +08:00
WantChane
49fb60f2d5 feat: uuid.lua 生成符合RFC 4122标准的UUID v4 (#1383) 2025-10-31 23:59:04 +08:00