diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2017-10-05 13:22:37 -0400 |
---|---|---|
committer | Nick Vatamaniuc <vatamane@apache.org> | 2017-10-05 13:22:37 -0400 |
commit | 04bebb3f99b2045da0deb090afb4e6c4eacb67f5 (patch) | |
tree | 7fc657f3732353079643f44416194d1761d6ce02 | |
parent | 1d2b149ee12dfeaf8d89a67b2f937207f4c5bdf2 (diff) | |
parent | 345804ce4d34786acbf0f498a93eac7013a2b0b5 (diff) | |
download | couchdb-04bebb3f99b2045da0deb090afb4e6c4eacb67f5.tar.gz |
Merge branch 'use-couch-rand-module'
Fixes #6
-rw-r--r-- | src/ioq.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ioq.erl b/src/ioq.erl index 93377d6d3..9ca26567a 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 -> |