Closed mdoza closed 8 years ago
DBConnection will use :rand
when :rand
is available, otherwise fallback to :random
. The :random.seed/3
call here must use :random.seed/3
to create a valid seed when using :random
.
Ah, I am sorry, I now understand this was trying to remove a compile time warning hard coded into Erlang compiler. I have disabled the warning with https://github.com/elixir-ecto/db_connection/commit/66e6e7b36638d95145e1b4c63371eadf02226e0a.
@fishcakez understood. Yes, that'll fix it. Thanks.
Erlang's Random module is deprecated from 19.0. Using the Rand module is now encouraged.