This commit is contained in:
Cogent Apps
2023-04-15 10:30:02 +00:00
parent 943bca2f4d
commit eb58d900b5
118 changed files with 5785 additions and 2471 deletions

View File

@@ -1,5 +1,5 @@
import crypto from 'crypto';
export function randomID() {
return crypto.randomBytes(16).toString('hex');
export function randomID(bytes = 16) {
return crypto.randomBytes(bytes).toString('hex');
}