optimize random_string

This commit is contained in:
Timo Hocker 2020-03-09 08:27:14 +01:00
parent c0ec49fd4b
commit cb9c142547
2 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ function random_string (len = 8) {
throw new Error ('invalid length');
return crypto.randomBytes (Math.ceil (len * 3 / 4))
.toString ('base64')
.replace (/[=]+$/u, '')
.substr (0, len);
}

View File

@ -2,7 +2,7 @@ module.exports = function(config) {
config.set({
mutator: "javascript",
packageManager: "yarn",
reporters: ["clear-text"],
reporters: ["clear-text", "progress"],
testRunner: "command",
transpilers: [],
coverageAnalysis: "all",