goncalotomas / erl_rand_str

OTP Library for generating random strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rand_str

Build Status hex version

An OTP library for generating random strings from whitelisted character lists.

Why?

Reusability. You shouldn't really need to write this code every time it's needed.

Callbacks

  • 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.

Use

append this to the deps list in your rebar.config file

{deps, [
    ... other deps
    {rand_str, "~>1.0"}
]}.

About

OTP Library for generating random strings.

License:Apache License 2.0


Languages

Language:Erlang 100.0%