An OTP library for generating random strings from whitelisted character lists.
Reusability. You shouldn't really need to write this code every time it's needed.
- get/1: returns a random list of the specified length. Returns base64 compatible characters.
- get/2: same as get/1, but uses a custom alphabet for generating the characters.
append this to the deps list in your rebar.config file
{deps, [
... other deps
{rand_str, "~>1.0"}
]}.