25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

randoms: Keep compatibility with Erlang/OTP 17

This commit is contained in:
Holger Weiss 2017-04-24 23:51:01 +02:00
parent c923bb5c10
commit d0f3696596

View File

@ -55,4 +55,4 @@ bytes(N) ->
-spec round_robin(pos_integer()) -> non_neg_integer().
round_robin(N) ->
erlang:unique_integer([monotonic, positive]) rem N.
p1_time_compat:unique_integer([monotonic, positive]) rem N.