/**
 * Generates random alphanumeric string.
 * @param length The size of the random string
 * @returns A random string for the given size.
 */
export function randomString(length = 8) {
    let text = '';
    const pool = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    for (let i = 0; i < length; i++) {
        text += pool.charAt(Math.floor(Math.random() * pool.length));
    }
    return text;
}
//# sourceMappingURL=Random.js.map