[erlang-questions] Password generator in Erlang
Artem Teslenko
ates@REDACTED
Thu Aug 16 17:54:58 CEST 2012
Yes, you are right. The first line is unnecessary.
On Thu, 16 Aug 2012, Jeremey Barrett wrote:
> On Aug 16, 2012, at 9:53 AM, Artem Teslenko <ates@REDACTED> wrote:
>
> > One more way to generate the passwords:
> >
> > random:seed(now()).
> > base64:encode_to_string(crypto:rand_bytes(16)).
>
> Note: random:seed() is not related to crypto:rand_bytes(). Just the second line will do.
>
> Regards,
> Jeremey.
>
More information about the erlang-questions
mailing list