aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-07 17:34:38 +0200
committerHans Nilsson <[email protected]>2016-06-07 17:34:38 +0200
commitbe9c40c614a11952652cb488d730a5a91656d4ec (patch)
treef923e19316f5d5bd01cd1626620e391caa508233
parenta39395d4f99aff99ac57ab40a3191fa13a7371fd (diff)
downloadotp-be9c40c614a11952652cb488d730a5a91656d4ec.tar.gz
otp-be9c40c614a11952652cb488d730a5a91656d4ec.tar.bz2
otp-be9c40c614a11952652cb488d730a5a91656d4ec.zip
httpc: Replaced deprecated module random with recommended module rand in httpc_SUITE
-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) ->