Files

5 lines
118 B
JavaScript

const crypto = require('crypto');
//lazy
module.exports = (bytes = 16) => crypto.randomBytes(bytes).toString("hex");