Generate a unique random string
A module that returns unique alphanumeric strings
Generate a unique random string
Generate a unique random string
Create unique random string IDs
Generate a unique filename for use in temporary directories or caches.
Generate a random integer
Collision-resistant ids optimized for horizontal scaling and performance. For node and browsers.
Get consecutively unique elements from an array
Generate a unique character string suitible for use in files and URLs.
Get a random item from an array
Unique machine (desktop) id (no admin privileges required).
Fastest random ID and random string generation for Node.js
Meteor's Random Package for Straight Node
Remove duplicate values from an array. Fastest ES5 implementation.
Generate random numbers that are consecutively unique
A tiny (118 bytes), secure URL-friendly unique string ID generator
Generate a cryptographically strong random string
Provides functions and types for detecting if the host environment is IE11
Generate unique and memorable names
Generate random or sequential UUID of any length
URL and cookie safe UIDs
math-random is an isomorphic, drop-in replacement for `Math.random` that uses cryptographically secure random number generation, where available
Create a unique, random string of any length, consisting of upper and lower case letters and numbers.
Using SHA1 encryption and the current time, this gem generates a random string that is useful for API keys.
Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. Raise an exception if the script returns a non-zero value. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Return a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Try fdatasync, falling back to fsync, falling back to flush. Random#exp:: Return a random integer 0 ≤ n < 2^argument (using SecureRandom). Random#float:: Return a random float 0.0 ≤ n < argument (using SecureRandom). Random#int:: Return a random integer 0 ≤ n < argument (using SecureRandom). Password:: A small wrapper for String#crypt that does secure salt generation and easy password verification.
CustomId generates unique, human-readable, prefixed string IDs (e.g. "usr_7xKmN2pQ…") for ActiveRecord models. Inspired by Stripe-style identifiers. Supports embedding shared characters from related model IDs, custom target columns, configurable random-part length, and an optional PostgreSQL trigger-based alternative.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.