aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-04-19 13:35:29 +0200
committerNiclas Eklund <[email protected]>2011-04-19 13:35:29 +0200
commitafe36b58bb77012f94b19213ed9602c2eb9fd420 (patch)
treee372dab012bafe8a8cdc175343727194a746095b /lib/ssh/src
parentc31065c750e37d5368398e9e2a741a1d4ec0588c (diff)
downloadotp-afe36b58bb77012f94b19213ed9602c2eb9fd420.tar.gz
otp-afe36b58bb77012f94b19213ed9602c2eb9fd420.tar.bz2
otp-afe36b58bb77012f94b19213ed9602c2eb9fd420.zip
Renamed the function strong_rand_uniform to strong_rand_mpint.
Added some checks in crypto.erl and crypto.c. Changed ssh_bits to use strong_rand_mpint.
Diffstat (limited to 'lib/ssh/src')
-rwxr-xr-xlib/ssh/src/ssh_bits.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_bits.erl b/lib/ssh/src/ssh_bits.erl
index ae89f31355..3f0a06575c 100755
--- a/lib/ssh/src/ssh_bits.erl
+++ b/lib/ssh/src/ssh_bits.erl
@@ -413,7 +413,7 @@ irandom(Bits) ->
%%
irandom(Bits, Top, Bottom) when is_integer(Top),
0 =< Top, Top =< 2 ->
- crypto:erlint(crypto:strong_rand_uniform(Bits, Top - 1, Bottom)).
+ crypto:erlint(crypto:strong_rand_mpint(Bits, Top - 1, Bottom)).
%%
%% random/1