Function
genRandomId
(prefix: string, radix = 36)
Source from the content-addressed store, hash-verified
| 1 | export default function genRandomId(prefix: string, radix = 36) { |
| 2 | return prefix + Math.random().toString(radix).substring(2); |
| 3 | } |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…