5 lines
124 B
TypeScript
5 lines
124 B
TypeScript
import crypto from 'crypto';
|
|
|
|
export function randomID(bytes = 16) {
|
|
return crypto.randomBytes(bytes).toString('hex');
|
|
} |