[erlang-questions] random:seed in R14, R15, ...

Rapsey rapsey@REDACTED
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.


Sergej

On Thu, Jul 19, 2012 at 8:23 AM, Uwe Dauernheim <uwe@REDACTED> 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120719/b286bb47/attachment.htm>


More information about the erlang-questions mailing list