Question

I am curious as to why this code is not working. I think it is because I am missing a certain library that provides the seed or possibly rand commands.

This is my error message

{"init terminating in do_boot",{undef,[{ssl,seed,[<<256 bytes>>],[]},{egs,start,0,[{file,"src/egs.erl"},{line,49}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

This is the line in the .erl

ssl:seed(crypto:rand_bytes(256)),

If the problem is library related please tell me where I can get seed or rand. If I can install them via the command line "sudo apt-get install ...." that would be great too.

Était-ce utile?

La solution 2

As it turns out crypto does the work in the newer versions of Erlang. So I just deleted the line and recompiled and it worked.

Autres conseils

what version of Erlang you use? In modern Erlang there are no "seed" method in "ssl" module. Do you start ssl application before? (ssl:start().)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top