File size: 284 Bytes
3d97d52
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * AI-generated file using Cursor + Claude 4
 *
 * Generate a unique ID for the response
 */
import { randomBytes } from "crypto";

export function generateUniqueId(prefix?: string): string {
	const id = randomBytes(24).toString("hex");
	return prefix ? `${prefix}_${id}` : id;
}