Initial 智念AIGC platform
This commit is contained in:
commit
f9c3393f84
86 files changed
+14741
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { randomBytes } from "node:crypto";
|
||||
|
||||
export function createId(prefix: string): string {
|
||||
return `${prefix}_${Date.now().toString(36)}_${randomBytes(5).toString("hex")}`;
|
||||
}
|
||||
Reference in new issue
Block a user