mirror of
https://github.com/rustfs/console.git
synced 2026-11-02 22:02:07 +08:00
8 lines
171 B
TypeScript
8 lines
171 B
TypeScript
import { randomUUID } from "./functions"
|
|
|
|
export function createTaskId(seed: string): string {
|
|
const prefix = Date.now()
|
|
return `${prefix}-${randomUUID()}-${seed}`
|
|
}
|
|
|