From 89aa8cf55ef1d00eb7de54a539dccad5150ee0c7 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 21 Jan 2021 21:06:52 +0000 Subject: [PATCH] lint: src/node/utils/randomstring.js --- src/node/utils/randomstring.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;