"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var CHARS_LENGTH = CHARS.length;
/**
* Reference: https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript
* @category string
* @module generateRandomString
*/
var generateRandomString = function (length) {
if (length === void 0) { length = 9; }
var result = '';
for (var i = 0; i < length; i++)
result += CHARS.charAt(Math.floor(Math.random() * CHARS_LENGTH));
return result;
};
exports.default = generateRandomString;
Source