diff options
Diffstat (limited to 'src/ejabberd_sql_sup.erl')
-rw-r--r-- | src/ejabberd_sql_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_sql_sup.erl b/src/ejabberd_sql_sup.erl index 0827b6492..874a9f99d 100644 --- a/src/ejabberd_sql_sup.erl +++ b/src/ejabberd_sql_sup.erl @@ -91,7 +91,7 @@ get_random_pid(Host) -> case get_pids(Host) of [] -> none; Pids -> - I = randoms:round_robin(length(Pids)) + 1, + I = p1_rand:round_robin(length(Pids)) + 1, lists:nth(I, Pids) end. |