W. ❝Mac❞ McMeans's repositories
localDataStorage
💼 A handy wrapper for HTML5 localStorage that seamlessly gets/sets common data types (Array, BigInt, Boolean, Date, Float, Integer, null, Object and String); provides simple data scrambling; intelligently compresses strings (saving storage space); permits query by key as well as query by value and promotes shared storage segmentation in the same domain. Key names and values are multi-byte Unicode-safe, and a key value change will fire an event you can subscribe to (even on a single page).
isaacCSPRNG
🔣 ISAAC is a fast, seedable, cryptographically secure pseudo-random number generator (CSPRNG) and synchronous stream cipher.
fisherYatesDurstenfeldKnuthShuffle
🔀 The standard algorithm for generating a uniformly chosen random permutation. Devised by Ronald Fisher and Frank Yates, modernized by Richard Durstenfeld and popularized by Donald E. Knuth. This version permits Sattolo cycles as well as seeded/keyed shuffles and unshuffles.