You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2019/01/30 13:20:21 UTC

[couchdb-ioq] 15/17: Use couch_rand compatibility module

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

rnewson pushed a commit to branch cloudant-ioq
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit 345804ce4d34786acbf0f498a93eac7013a2b0b5
Author: Nick Vatamaniuc <va...@apache.org>
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 ->