[erlang-questions] random:seed in R14, R15, ...
Thu Jul 19 08:34:00 CEST 2012
How many random numbers do you need? You can always generate them and save
them either in an external file or directly into test code.
On Thu, Jul 19, 2012 at 8:23 AM, Uwe Dauernheim <> wrote:
> When writing test cases that exercise e.g. random:uniform/0 one wants to
> use random:seed/1 with a fixed seed for deterministic test results, but
> providing the seed function with a fixed value seems to result in a
> different sequence for R14 and R15 (maybe for older or upcoming release as
> well). This is a problem when distributing your code and you are not sure
> which release will be used.
> What is the common solution for this?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions