GuLiMmo
2024-07-01 8e79b5c74f4c0f52cff9f18991cde9cfc16d270f
1
2
3
4
5
6
export function uuidv4 () {
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
    const r = Math.random() * 16 | 0; const v = c === 'x' ? r : (r & 0x3 | 0x8)
    return v.toString(16)
  })
}