Skip to content

Conversation

@ifoo
Copy link

@ifoo ifoo commented Jan 31, 2017

Compiling on Erlang/OTP 19 yield the following deprecation warnings:

===> Compiling rabbit_common
./deps/rabbit_common/src/gen_server2.erl:770: Warning: random:uniform_s/2: the 'random' module is deprecated; use the 'rand' module instead
src/gen_server2.erl:770: Warning: random:uniform_s/2: the 'random' module is deprecated; use the 'rand' module instead

./deps/rabbit_common/src/rabbit_misc.erl:1169: Warning: random:seed/3: the 'random' module is deprecated; use the 'rand' module instead
./deps/rabbit_common/src/rabbit_misc.erl:1174: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/rabbit_misc.erl:1169: Warning: random:seed/3: the 'random' module is deprecated; use the 'rand' module instead
src/rabbit_misc.erl:1174: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead

The pull request replaces the deprecated random module with the new rand module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants