[erlang-questions] GUID
Matthias Lang
matthias@REDACTED
Fri Oct 26 13:19:16 CEST 2007
Joe Armstrong writes:
> Does anybody have some Erlang code to generate a GUID?
> (or to read the MAC address of the local machine interfaces?)
>From some old code:
%%% There are some undocumented (but useful!) functions in inet:
%%%
%%% inet:getif() returns all the IP addresses
%%% inet:getiflist() returns all the network devices
%%% inet:ifget("eth0", [hwaddr, addr]) returns the MAC and IP addrs
Matthias
More information about the erlang-questions
mailing list