ass/src/generators/random.js

3 lines
147 B
JavaScript

const cryptoRandomString = require('crypto-random-string');
module.exports = ({ length }) => cryptoRandomString({ length, type: 'alphanumeric' });