aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/rand_SUITE.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-01-19 10:46:46 +0100
committerRaimo Niskanen <[email protected]>2018-02-21 10:54:00 +0100
commit510bb79a7ccd5d32db8f531042824b6b95a1bebe (patch)
tree12ef082dd7560a7acb7146d1f6de46d53feea532 /lib/stdlib/test/rand_SUITE.erl
parent66b3383675cb9090469cf8f4b281642691eb40cd (diff)
downloadotp-510bb79a7ccd5d32db8f531042824b6b95a1bebe.tar.gz
otp-510bb79a7ccd5d32db8f531042824b6b95a1bebe.tar.bz2
otp-510bb79a7ccd5d32db8f531042824b6b95a1bebe.zip
Decrease tolerance a wee bit
Diffstat (limited to 'lib/stdlib/test/rand_SUITE.erl')
-rw-r--r--lib/stdlib/test/rand_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl
index 743676fc13..55cff22d47 100644
--- a/lib/stdlib/test/rand_SUITE.erl
+++ b/lib/stdlib/test/rand_SUITE.erl
@@ -486,13 +486,13 @@ stats_standard_normal(Config) when is_list(Config) ->
stats_standard_normal(Fun, S, Retries) ->
%%%
%%% ct config:
-%%% {rand_SUITE, [{stats_standard_normal,[{seconds, 8}, {std_devs, 4.2}]}]}.
+%%% {rand_SUITE, [{stats_standard_normal,[{seconds, 8}, {std_devs, 4.0}]}]}.
%%%
Seconds = ct:get_config({?MODULE, ?FUNCTION_NAME, seconds}, 8),
StdDevs =
ct:get_config(
{?MODULE, ?FUNCTION_NAME, std_devs},
- 4.2), % probability erfc(4.2/sqrt(2)) (1/37465) to fail a bucket
+ 4.0), % probability erfc(4.0/sqrt(2)) (1/15787) to fail a bucket
%%%
ct:timetrap({seconds, Seconds + 120}),
%% Buckets is chosen to get a range where the the probability to land