Full commit for review

This commit is contained in:
2023-05-10 20:43:45 +02:00
parent bb6db9d523
commit 513772dd1e
47 changed files with 7956 additions and 1 deletions

14
api/modules/random.js Normal file
View File

@@ -0,0 +1,14 @@
const crypto = require('crypto');
function random(x, y) {
return crypto.randomInt(x, y);
}
function randomHEX(x) {
return crypto.randomBytes(x).toString('hex');
}
module.exports = {
random,
randomHEX,
};