[erlang-questions] Use of uuidgen with a mnesia application

Paul Fisher <>
Fri Jun 6 19:02:34 CEST 2008

On Fri, 2008-06-06 at 09:24 -0700, Darren New wrote:
> Paul Fisher wrote:
> > That is not guaranteed to be unique. 
> I would hash the contents of the record itself. If you get a collision, 
> it's probably because the records are identical anyway. :-)

That was my point, performing the SHA hash on
term_to_binary( {make_ref(), now()} ) does not alter the uniqueness of
the result.  It only randomizes the distribution of the generated "id


More information about the erlang-questions mailing list