From 3adc965dd09490b7efa1cce9f09b0a3b30970277 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 17:30:39 +0800 Subject: ✨优化文档 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- envshare/pkg/id.ts | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 envshare/pkg/id.ts (limited to 'envshare/pkg/id.ts') 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); -} -- cgit v1.2.3-70-g09d2