diff options
author | Raimo Niskanen <[email protected]> | 2018-09-28 11:21:25 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-09-28 11:21:25 +0200 |
commit | 39b149e051dd957f336187f038a0f444871e026a (patch) | |
tree | 8e7b12b92e6deb1d23bf5ca7fd1c933543a7722a /lib | |
parent | 377f19f25aeec6939a6728bd0c4910086c22ccdc (diff) | |
download | otp-39b149e051dd957f336187f038a0f444871e026a.tar.gz otp-39b149e051dd957f336187f038a0f444871e026a.tar.bz2 otp-39b149e051dd957f336187f038a0f444871e026a.zip |
Decrease probability for failed histogram
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdlib/test/rand_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl index d753d929f5..b76c9f5341 100644 --- a/lib/stdlib/test/rand_SUITE.erl +++ b/lib/stdlib/test/rand_SUITE.erl @@ -475,10 +475,11 @@ stats_standard_normal_box_muller_2(Config) when is_list(Config) -> stats_standard_normal(Config) when is_list(Config) -> + Retries = 7, try math:erfc(1.0) of _ -> stats_standard_normal( - fun rand:normal_s/1, rand:seed_s(exrop), 3) + fun rand:normal_s/1, rand:seed_s(exrop), Retries) catch error:_ -> {skip, "math:erfc/1 not supported"} end. |