aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_transport_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2016-06-11 12:42:43 +0200
committerAnders Svensson <[email protected]>2016-06-11 18:49:42 +0200
commitc980e489d02417e1144d28958fe9abd4017f72a4 (patch)
tree0074bd849cc83e3f471cb0b89feae2d611ce6bc4 /lib/diameter/test/diameter_transport_SUITE.erl
parentf027ac4d0f1d522e3b3d5c4695baf42a5cdd5330 (diff)
downloadotp-c980e489d02417e1144d28958fe9abd4017f72a4.tar.gz
otp-c980e489d02417e1144d28958fe9abd4017f72a4.tar.bz2
otp-c980e489d02417e1144d28958fe9abd4017f72a4.zip
Use rand(3) instead of random(3)
The latter is deprecated in OTP 19.
Diffstat (limited to 'lib/diameter/test/diameter_transport_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl
index f2884eacb4..c94f46b7a5 100644
--- a/lib/diameter/test/diameter_transport_SUITE.erl
+++ b/lib/diameter/test/diameter_transport_SUITE.erl
@@ -338,13 +338,12 @@ make_msg() ->
%% crypto:rand_bytes/1 isn't available on all platforms (since openssl
%% isn't) so roll our own.
rand_bytes(N) ->
- random:seed(diameter_util:seed()),
rand_bytes(N, <<>>).
rand_bytes(0, Bin) ->
Bin;
rand_bytes(N, Bin) ->
- Oct = random:uniform(256) - 1,
+ Oct = rand:uniform(256) - 1,
rand_bytes(N-1, <<Oct, Bin/binary>>).
%% ===========================================================================