Use couch_rand compatibility module 6/head
authorNick Vatamaniuc <vatamane@apache.org>
Thu, 5 Oct 2017 16:05:28 +0000 (12:05 -0400)
committerNick Vatamaniuc <vatamane@apache.org>
Thu, 5 Oct 2017 16:05:28 +0000 (12:05 -0400)
src/ioq.erl

index 93377d6d3546436e0690536e92c122e92b9e08b7..9ca26567a63e8222856e73ff56f12a721967b68d 100644 (file)
@@ -136,7 +136,7 @@ make_next_request(#state{}=State) ->
         {false, true} ->
             choose_next_request(#state.compaction, State);
         {false, false} ->
-            case random:uniform() < State#state.ratio of
+            case couch_rand:uniform() < State#state.ratio of
                 true ->
                     choose_next_request(#state.compaction, State);
                 false ->