[erlang-questions] RNG seeding example from YAWS

Richard Andrews bflatmaj7th@REDACTED
Mon Jun 1 00:49:34 CEST 2009


> So given this example, would a process' seeding using random:seed()
> affect any other running processes, or just the current process where
> the seed was changed?  i.e. if there were 100 processes spawned, each of
> which initially changes the random seed, would that seed only affect and
> be used in conjunction with random:uniform() called from within that
> current process?

Given that the entropy is held in the state object and erlang
processes do not share state I think there can be only one conclusion.


More information about the erlang-questions mailing list