[erlang-questions] GUID

Taavi Talvik taavi@REDACTED
Thu Oct 25 17:58:48 CEST 2007


On Oct 25, 2007, at 6:13 PM, Joe Armstrong wrote:

> Does anybody have some Erlang code to generate a GUID?
> (or to read the MAC address of the local machine interfaces?)

Probably machine/os specific, on freebsd you can do

1> os:cmd("sysctl kern.hostuuid").
"kern.hostuuid: B5D5342C-9142-3AA0-81C8-7391B34506DA\n"


best regards,
taavi



More information about the erlang-questions mailing list