This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch ioq-per-shard-or-user
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit 345804ce4d34786acbf0f498a93eac7013a2b0b5
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Thu Oct 5 12:05:28 2017 -0400

    Use couch_rand compatibility module
---
 src/ioq.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ioq.erl b/src/ioq.erl
index 93377d6..9ca2656 100644
--- a/src/ioq.erl
+++ b/src/ioq.erl
@@ -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 ->

Reply via email to