lint: src/node/utils/randomstring.js

This commit is contained in:
John McLear 2021-01-21 21:06:52 +00:00 committed by Richard Hansen
parent 21ef857d8a
commit 89aa8cf55e

View file

@ -1,10 +1,10 @@
'use strict';
/**
* Generates a random String with the given length. Is needed to generate the Author, Group, readonly, session Ids
* Generates a random String with the given length. Is needed to generate the
* Author, Group, readonly, session Ids
*/
const crypto = require('crypto');
const randomString = function (len) {
return crypto.randomBytes(len).toString('hex');
};
const randomString = (len) => crypto.randomBytes(len).toString('hex');
module.exports = randomString;