Releases: indyone/misc_random
Releases · indyone/misc_random
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/1
function. 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_doc
and static code analysis report withcredo
&dialyzer
. - Added
Misc.Random.string/2
which allows custom characters to be used instead of the default one (a-z, A-Z & 0-9). - Fixed issue with
Misc.Random.number/1
which may return number shorter thanlength
. - Removed compiler warnings.
- Removed functions
Misc.Random.seed_random/0
,Misc.Random.get_string/1
andMisc.Random.get_number/1
as it seemed the usage was private *. - Few code optimizations.
* This change may break compatibility with original project.