From: Zabrane Mickael <zabra...@gmail.com>
Date: Tue, 14 Aug 2012 18:12:14 +0200
Local: Tues, Aug 14 2012 12:12 pm
Subject: Re: [erlang-questions] Password generator in Erlang
Thank Serker.
Moving andom:seed(A1, A2, A3) at start fix it.
1> passwd:test().
--------------------
passwd() ->
lists:flatten(lists:foldl(fun(_,AccIn) ->
--------------------
Regards,
On Aug 14, 2012, at 5:43 PM, Sverker Eriksson wrote:
> Try only call random:seed(A1, A2, A3) once at start.
_______________________________________________
> For cryptographic safe random generation look at crypto module.
> /Sverker
> Zabrane Mickael wrote:
>> This one fires a lot of collisions (http://schemecookbook.org/Erlang/NumberRandomNumber):
>> ------------------
>> passwd() ->
>> ----------------
>> > passwd:test().
>> Anything better guys? Something with less collisions if possible.
>> Regards,
erlang-questions mailing list erlang-questi...@erlang.org http://erlang.org/mailman/listinfo/erlang-questions You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||