shuffrand
Version:
Cryptographically secure randomness and shuffling — with soul.
10 lines (9 loc) • 807 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
* shuffrand Constants
*
* This file defines various constants used throughout the shuffrand module,
* adhering to a flat, dot-categorized structure for clarity.
*
* @author Doron Brayer <doronbrayer@outlook.com>
* @license MIT
*/const E="0123456789",_="abcdefghijklmnopqrstuvwxyz",t=_.toUpperCase(),A=_+t,e=_+t+E,T=E+_.slice(0,6),s={MAX_SAFE_INT:Number.MAX_SAFE_INTEGER,MIN_SAFE_INT:Number.MIN_SAFE_INTEGER,MAX_SAFE_DOUBLE:1e15,MIN_SAFE_DOUBLE:-1e15,UINT32_MAX_VALUE:4294967295,UINT32_RANGE:4294967296,MAX_FRACTIONAL_DIGITS:15,MIN_FRACTIONAL_DIGITS:1,MAX_ATTEMPTS_TO_GENERATE_NUM:30,DIGITS:E,LATIN_LOWERCASE_LETTERS:_,LATIN_UPPERCASE_LETTERS:t,LATIN_LETTERS:A,ALPHANUMERIC_CHARS:e,HEX_CHARS:T};exports.Constants=s;