Releases: indyone/misc_random
Releases · indyone/misc_random
Release list
v1.0.0
Almost a complete re-write, can be used in-place (in most cases) and has the following changes:
- Works with latest Elixir (> v1.4) & Erlang (> v19) *.
- Use Erlang's
:rand.uniform/1function. This function by default uses theexrop
algorithm which is not a secure PRNG, so for security stuff you may need to seed
before using something likecrypto:rand_seed/0. - Added documentation generated with
ex_docand static code analysis report withcredo&dialyzer. - Added
Misc.Random.string/2which allows custom characters to be used instead of the default one (a-z, A-Z & 0-9). - Fixed issue with
Misc.Random.number/1which may return number shorter thanlength. - Removed compiler warnings.
- Removed functions
Misc.Random.seed_random/0,Misc.Random.get_string/1andMisc.Random.get_number/1as it seemed the usage was private *. - Few code optimizations.
* This change may break compatibility with original project.