Files
website/src/util/random.ts
2025-10-13 21:04:21 +02:00

6 lines
145 B
TypeScript

import * as crypto from 'crypto';
export function generateRandomString(length: number) {
return crypto.randomBytes(length).toString('hex');
}