"use strict";
/* eslint-disable import/prefer-default-export */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSecureRandomString = void 0;
const crypto_1 = require("crypto");
const getSecureRandomString = (length) => {
    const bytes = (0, crypto_1.randomBytes)(Math.ceil(length * 2));
    const randomString = bytes.toString('base64').replace(/[^a-zA-Z0-9]/g, '');
    return randomString.slice(0, length);
};
exports.getSecureRandomString = getSecureRandomString;
//# sourceMappingURL=crypto.js.map