gutschilla/elixir-helper-random

Warnings with Elixir 1.5.2 and version 0.2.6

quatermain opened this issue · 1 comments

Hello,

I got couple of warnings with Elixir 1.5.2 and version 0.2.6:

warning: variable "seed_random" does not exist and is being expanded to "seed_random()", please use parentheses to remove the ambiguity or change the variable name
  lib/random.ex:23

warning: variable "seed_random" does not exist and is being expanded to "seed_random()", please use parentheses to remove the ambiguity or change the variable name
  lib/random.ex:49

warning: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
  lib/random.ex:11

warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
  lib/random.ex:35

warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
  lib/random.ex:53

warning: variable "description" does not exist and is being expanded to "description()", please use parentheses to remove the ambiguity or change the variable name
  ..../deps/misc_random/mix.exs:8

warning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
 .../deps/misc_random/mix.exs:9

warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
  .../deps/misc_random/mix.exs:10

Hi @quatermain , sorry fpr the ultra late reply. These errors are hard to remove since the deprecation warnings are there since I added code to be executed depending on the Erlang system in use. So, if you're still on Erlang 17, :random.uniform is still the way to go. I will remove this probably end of this year when everybody moved to a more recent version of Erlang.

Until then this is a backwards compatibility shim. I still need it ;-)