UNPKG

koishi-plugin-yunzai

Version:
13 lines (12 loc) 386 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UUID = void 0; class UUID { static randomUUID() { const v4 = () => { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); }; return (v4() + v4() + '-' + v4() + '-' + v4() + '-' + v4() + '-' + v4() + v4() + v4()); } } exports.UUID = UUID;