couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject couchdb-ioq git commit: Use couch_rand compatibility module
Date Thu, 05 Oct 2017 16:06:54 GMT
Repository: couchdb-ioq
Updated Branches:
  refs/heads/use-couch-rand-module [created] 345804ce4


Use couch_rand compatibility module


Project: http://git-wip-us.apache.org/repos/asf/couchdb-ioq/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ioq/commit/345804ce
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ioq/tree/345804ce
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ioq/diff/345804ce

Branch: refs/heads/use-couch-rand-module
Commit: 345804ce4d34786acbf0f498a93eac7013a2b0b5
Parents: 1d2b149
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Thu Oct 5 12:05:28 2017 -0400
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Thu Oct 5 12:05:28 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/couchdb-ioq/blob/345804ce/src/ioq.erl
----------------------------------------------------------------------
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 ->


Mime
View raw message