diff options
author | Anders Svensson <[email protected]> | 2016-06-11 12:42:43 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2016-06-11 18:49:42 +0200 |
commit | c980e489d02417e1144d28958fe9abd4017f72a4 (patch) | |
tree | 0074bd849cc83e3f471cb0b89feae2d611ce6bc4 /lib/diameter/test/diameter_transport_SUITE.erl | |
parent | f027ac4d0f1d522e3b3d5c4695baf42a5cdd5330 (diff) | |
download | otp-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.erl | 3 |
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>>). %% =========================================================================== |