first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-03-11 18:35:09 -04:00
commit 481c17499d
1371 changed files with 206438 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
'use strict';
const crypto = require('crypto');
module.exports = length => {
if (!Number.isFinite(length)) {
throw new TypeError('Expected a finite number');
}
return crypto.randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length);
};