I tried:
os:cmd("uuidgen -t")
: but this is platform dependant and returns a tuple. I just want a binary value which I can use.
I want something based on MAC address, 128bit, and where I can just include a module and use module:uuid() to get a string hex UUID, or module:binary_uuid, something simple like that. So far it doesn't seem to exist in Erlang.
Update:
Noone could give a correct answer so in the end I used:
hex_uuid() -> os:cmd("uuidgen").
It won't work on Windows, but works on Linux and Mac