()
| 28 | } |
| 29 | |
| 30 | export function generateUUID(): string { |
| 31 | return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { |
| 32 | const r = (Math.random() * 16) | 0; |
| 33 | const v = c === "x" ? r : (r & 0x3) | 0x8; |
| 34 | return v.toString(16); |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Helper function to run promises with limited concurrency |
nothing calls this directly
no outgoing calls
no test coverage detected