diff --git a/src/node/utils/randomstring.js b/src/node/utils/randomstring.js index 622b0082d..4ffd3e8ae 100644 --- a/src/node/utils/randomstring.js +++ b/src/node/utils/randomstring.js @@ -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;