/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/crypto-random-in-range@2.0.1/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import random from"crypto-random-bigint";const inRange=(n,t)=>{if(n=BigInt(n),t=BigInt(t),n<0n||t<0n)throw new Error("Negative ranges are not supported");if(t<=n)throw new Error('"max" must be at least equal to "min" plus 1');const r=t-n-1n,o=r.toString(2).length;for(;;){const t=random(o);if(!(t>r))return t+n}};export default inRange;
//# sourceMappingURL=/sm/c60dcc2f6ed07bc00393bc890a11c202ddf9cdb82bc9158c3ae74f865141c47d.map