[erlang-questions] process dictionary, anyone?

Robert Virding <>
Thu Apr 26 22:10:53 CEST 2007


I don't want to say it but RTFM. It's documented as well as how you 
initialise the seed. The algorithm used is quite good but not at all 
suitable for cryptography.

Robert

Jonathan Gold wrote:
> I noticed that too, and indeed it was very fun for me too :)
> 
> I ended up switching over to using the random engine in the crypto module
> instead. Is that what you did?
> 
> jon
> 
> On Wed, Apr 25, 2007 at 11:02:44AM +0200, Luke Gorrie wrote:
>> "Julian Fondren" <> writes:
>>
>>> Also, the 'random' module inserts random_seed in the caller's
>>> process dictionary.
>> .. and has anyone else noticed how fun it is that by default each
>> process's random-seed is initialized from a constant?
>>
>> Just a couple of months ago I spawned a dozen processes each behaving
>> "randomly" and was quite amused when they all did exactly the same
>> thing :-)
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list