uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

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

Open aronisstav opened 6 years ago

aronisstav commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

benoitc commented 6 years ago

@uwiger ping

benoitc commented 6 years ago

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