Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with OTP 20 yields warnings about crypto:rand_uniform/2 #154

Open
aronisstav opened this issue Jan 30, 2018 · 4 comments
Open

Comments

@aronisstav
Copy link

Using rebar3:

===> Compiling gproc
_build/default/lib/gproc/src/gproc_dist.erl:23: Warning: behaviour gen_leader undefined

_build/default/lib/gproc/src/gproc_pool.erl:379: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
_build/default/lib/gproc/src/gproc_pool.erl:570: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
_build/default/lib/gproc/src/gproc_pool.erl:1041: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
_build/default/lib/gproc/src/gproc_pool.erl:1053: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
_build/default/lib/gproc/src/gproc_pool.erl:1062: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1

Erlang version info:

$ erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]
@benoitc
Copy link

benoitc commented Apr 9, 2018

latest master has a fix for it (also duplicate of #135 ?) . Would be cool if a new release can be sent to hex.pm with that fix :) cc @uwiger

@aronisstav
Copy link
Author

Duplicate indeed. Can be safely closed. (@benoitc's secondary comment is useful, so not doing it myself).

@benoitc
Copy link

benoitc commented Apr 29, 2018

@uwiger ping

@benoitc
Copy link

benoitc commented May 27, 2018

@uwiger any chance you can publish a new release on hex to remove these warnings? It becomes important also with the arrival of R21.

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

No branches or pull requests

2 participants