aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/envshare/pkg/id.ts
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-19 17:30:39 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-19 17:30:39 +0800
commit3adc965dd09490b7efa1cce9f09b0a3b30970277 (patch)
treef813abb07d7b003984aa74e3154752b6ffc3ccd5 /envshare/pkg/id.ts
parentc7c9ca6f0c8eddf6d34cd40779f3b2d9463f3a46 (diff)
downloadHydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.tar.gz
HydroRoll-3adc965dd09490b7efa1cce9f09b0a3b30970277.zip
✨优化文档
Diffstat (limited to 'envshare/pkg/id.ts')
-rw-r--r--envshare/pkg/id.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/envshare/pkg/id.ts b/envshare/pkg/id.ts
deleted file mode 100644
index efdfb5e..0000000
--- a/envshare/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);
-}