[erlang-questions] Generating readable unique IDs for use outside erlang
Dave Challis
dsc@REDACTED
Thu Feb 10 17:45:12 CET 2011
On 10/02/11 14:47, Ale wrote:
>>
>> Any suggestions on this?
>>
>
> Why don't you generate UUID?
> http://en.wikipedia.org/wiki/Universally_unique_identifier
I mostly wanted to stick to the standard library for speed, I assumed
that calling the BIFs now() and node() would be much more efficient than
running code to generate a uuid.
Memory-wise, a tuple containing {node(), now()} should use up much less
space than a 128 bit uuid.
But good to know the code is out there, will come in handy someday I'm sure!
--
Dave Challis
dsc@REDACTED
More information about the erlang-questions
mailing list