Skip to content

couch_replicator_scheduler_job using random module #854

Description

@wohali

Current Behaviour

When attempting a CouchDB build using Erlang 20, the following warnings are emitted:

==> couch_replicator (compile)
/home/joant/couchdb/src/couch_replicator/src/couch_replicator_scheduler_job.erl:113: Warning: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
/home/joant/couchdb/src/couch_replicator/src/couch_replicator_scheduler_job.erl:471: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead

Expected Behavior

We should emit no warnings during compile.

Possible Solution

Something similar to the now-removed couch_crypto module approach is probably necessary, see
https://github.com/apache/couchdb/pull/681/files#diff-d638c36d558ae9f19898014029c6007f

Context

Trying to finish cleaning up CouchDB for OTP-20 compatibility.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions