"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateRandomOtp = void 0;
const generateRandomOtp = (length = 6) => {
    const digits = '0123456789';
    let otp = '';
    for (let i = 0; i < length; i++) {
        otp += digits[Math.floor(Math.random() * 10)];
    }
    return otp;
};
exports.generateRandomOtp = generateRandomOtp;
