dashboard
repositories
filestore
activity
search
login
drone
/
drone-web
无人机操作系统
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
update device-firmware.ts
sean.zhou
2022-12-12
20e5f4cd989fbe345d949c96f73009901fdfd041
[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)
})
}