aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-09-28 11:21:25 +0200
committerRaimo Niskanen <[email protected]>2018-09-28 11:21:25 +0200
commit39b149e051dd957f336187f038a0f444871e026a (patch)
tree8e7b12b92e6deb1d23bf5ca7fd1c933543a7722a /lib
parent377f19f25aeec6939a6728bd0c4910086c22ccdc (diff)
downloadotp-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.erl3
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.