aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/pubkey_ssh.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public_key/src/pubkey_ssh.erl')
-rw-r--r--lib/public_key/src/pubkey_ssh.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/public_key/src/pubkey_ssh.erl b/lib/public_key/src/pubkey_ssh.erl
index 5055866ab2..75c1880655 100644
--- a/lib/public_key/src/pubkey_ssh.erl
+++ b/lib/public_key/src/pubkey_ssh.erl
@@ -79,9 +79,7 @@ dh_gex_group(Min, N, Max, undefined) ->
dh_gex_group(Min, N, Max, Groups) ->
case select_by_keylen(Min-10, N, Max+10, Groups) of
{ok,{Sz,GPs}} ->
- Rnd = crypto:rand_uniform(1, 1+length(GPs)),
- %% 1 =< Rnd < 1+length(GPs)
- %% <=>
+ Rnd = rand:uniform( length(GPs) ),
%% 1 =< Rnd =< length(GPs)
{ok, {Sz, lists:nth(Rnd,GPs)}};
Other ->