const uuid = require('uuid');
function generateCode(length, count) {
const codes = [];
for (let i = 0; i < count; i++) {
const code = uuid.v4().replace(/-/g, '').substring(0, length);
codes.push(code);
}
return codes;
}
const uuid = require('uuid');
function generateCode(length, count) {
const codes = [];
for (let i = 0; i < count; i++) {
const code = uuid.v4().replace(/-/g, '').substring(0, length);
codes.push(code);
}
return codes;
}