dashboard
repositories
filestore
activity
search
login
drone
/
drone-web
无人机操作系统
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Merge remote-tracking branch 'origin/demo' into demo
xieb
2023-11-16
16fcff23e254e02bd0b09624e8dc44b6097dc6f9
[drone/drone-web.git]
/
src
/
utils
/
uuid.ts
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)
})
}