"use strict";
/*
 * @adonisjs/shield
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("@poppinss/utils/build/helpers");
/**
 * Sharing CSP nonce with the response
 */
function responseBinding(Response) {
    Response.getter('nonce', () => {
        return helpers_1.string.generateRandom(16);
    }, true);
}
exports.default = responseBinding;
