diff options
Diffstat (limited to 'client-web/source/helper.ts')
-rw-r--r-- | client-web/source/helper.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts index 8dafd29..b4eb20e 100644 --- a/client-web/source/helper.ts +++ b/client-web/source/helper.ts @@ -1,9 +1,5 @@ /// <reference lib="dom" /> -export function hex_id(len = 8): string { - if (len > 8) return hex_id() + hex_id(len - 8) - return Math.floor(Math.random() * 16 ** len).toString(16).padStart(len, "0") -} const elem = (s: string) => document.createElement(s) |