diff options
| author | 2023-04-18 03:02:17 +0800 | |
|---|---|---|
| committer | 2023-04-18 03:02:17 +0800 | |
| commit | 4919f028c884a041da7ff098abb02389b4eac598 (patch) | |
| tree | b0f482568c4b8c8a680ce6e2e70a7b7ca87dc190 /pkg/id.ts | |
| parent | b135aac8531c1e1488147ad8c6f98eddbdbe0c99 (diff) | |
| download | HydroRoll-4919f028c884a041da7ff098abb02389b4eac598.tar.gz HydroRoll-4919f028c884a041da7ff098abb02389b4eac598.zip | |
✨add envshare docs
Diffstat (limited to 'pkg/id.ts')
| -rw-r--r-- | pkg/id.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/id.ts b/pkg/id.ts deleted file mode 100644 index efdfb5e..0000000 --- a/pkg/id.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { toBase58 } from "../util/base58"; -import { ID_LENGTH } from "./constants"; - -export function generateId(): string { - const bytes = new Uint8Array(ID_LENGTH); - crypto.getRandomValues(bytes); - return toBase58(bytes); -} |
