aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-09 12:10:10 +0200
committerHans Nilsson <[email protected]>2016-06-09 12:10:10 +0200
commitba66f441200c0077d183380d37751ef48e264d75 (patch)
tree11f5fd348dd8e2afc39ac50618df94bb5a5dbbba /lib
parent060807cf9e91182b4d46432c436a8c4953be9d7d (diff)
parentbe9c40c614a11952652cb488d730a5a91656d4ec (diff)
downloadotp-ba66f441200c0077d183380d37751ef48e264d75.tar.gz
otp-ba66f441200c0077d183380d37751ef48e264d75.tar.bz2
otp-ba66f441200c0077d183380d37751ef48e264d75.zip
Merge branch 'hans/inets/cuddle_httpc_tests'
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/test/httpc_SUITE.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 42772923e4..932567ec55 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -2080,7 +2080,7 @@ run_clients(NumClients, ServerPort, SeqNumServer) ->
end
end),
MRef = erlang:monitor(process, Pid),
- timer:sleep(10 + random:uniform(1334)),
+ timer:sleep(10 + rand:uniform(1334)),
{Id, Pid, MRef}
end,
lists:seq(1, NumClients)).
@@ -2169,7 +2169,7 @@ slowly_send_response(CSock, Answer) ->
[length(Answer), Answer])),
lists:foreach(
fun(Char) ->
- timer:sleep(random:uniform(500)),
+ timer:sleep(rand:uniform(500)),
gen_tcp:send(CSock, <<Char>>)
end,
Response).
@@ -2189,9 +2189,8 @@ parse_connection_type(Request) ->
set_random_seed() ->
Unique = erlang:unique_integer(),
-
A = erlang:phash2([make_ref(), self(), Unique]),
- random:seed(A, A, A).
+ rand:seed(exsplus, {A, A, A}).
otp_8739(doc) ->