aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/gen_tcp_echo_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-12-10 14:57:40 +0100
committerBjörn Gustavsson <[email protected]>2015-12-11 14:37:46 +0100
commit51f1e296e7d8709df6324f78e365446a22201cf1 (patch)
tree6bb5df25db15b3e1665d745ab847fc4a74855255 /lib/kernel/test/gen_tcp_echo_SUITE.erl
parentd8dab7ad987cb0d57bc2e4b2bbbec7ebe5ef2a04 (diff)
downloadotp-51f1e296e7d8709df6324f78e365446a22201cf1.tar.gz
otp-51f1e296e7d8709df6324f78e365446a22201cf1.tar.bz2
otp-51f1e296e7d8709df6324f78e365446a22201cf1.zip
kernel test: Replace 'random' with 'rand'
Diffstat (limited to 'lib/kernel/test/gen_tcp_echo_SUITE.erl')
-rw-r--r--lib/kernel/test/gen_tcp_echo_SUITE.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/kernel/test/gen_tcp_echo_SUITE.erl b/lib/kernel/test/gen_tcp_echo_SUITE.erl
index 6dcb21758b..b5ed16ec34 100644
--- a/lib/kernel/test/gen_tcp_echo_SUITE.erl
+++ b/lib/kernel/test/gen_tcp_echo_SUITE.erl
@@ -442,14 +442,7 @@ random_char(Chars) ->
lists:nth(uniform(length(Chars)), Chars).
uniform(N) ->
- case get(random_seed) of
- undefined ->
- {X, Y, Z} = time(),
- random:seed(X, Y, Z);
- _ ->
- ok
- end,
- random:uniform(N).
+ rand:uniform(N).
put_int32(X, big, List) ->
[ (X bsr 24) band 16#ff,