aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-04-17 13:37:28 +0200
committerHans Nilsson <[email protected]>2019-04-17 16:37:12 +0200
commitf16b3782207c23eb02aaa52460b889be0546a5f3 (patch)
treec07ddab3293f109a280a62939f14fc94b6856e74 /lib
parent7d67a9e83afe2fe917f5faadba86d3f482218804 (diff)
downloadotp-f16b3782207c23eb02aaa52460b889be0546a5f3.tar.gz
otp-f16b3782207c23eb02aaa52460b889be0546a5f3.tar.bz2
otp-f16b3782207c23eb02aaa52460b889be0546a5f3.zip
ssh: Fix deprecation warnings in tests
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/test/crypto_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index 0823f78a64..89df35dcfa 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -1553,7 +1553,7 @@ rand_uniform_aux_test(N) ->
rand_uniform_aux_test(N-1).
crypto_rand_uniform(L,H) ->
- R1 = crypto:rand_uniform(L, H),
+ R1 = (L-1) + rand:uniform(H-L),
case (R1 >= L) and (R1 < H) of
true ->
ok;