diff options
author | Niclas Eklund <[email protected]> | 2011-04-19 13:35:29 +0200 |
---|---|---|
committer | Niclas Eklund <[email protected]> | 2011-04-19 13:35:29 +0200 |
commit | afe36b58bb77012f94b19213ed9602c2eb9fd420 (patch) | |
tree | e372dab012bafe8a8cdc175343727194a746095b /lib/ssh | |
parent | c31065c750e37d5368398e9e2a741a1d4ec0588c (diff) | |
download | otp-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')
-rwxr-xr-x | lib/ssh/src/ssh_bits.erl | 2 |
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 |