[erlang-questions] erlang:phash2(make_ref(), 1 bsl 32)

Matthew Dempsky <>
Fri May 9 03:20:18 CEST 2008

2008/5/8 Per Melin <>:
> You're right. But for what I need in this particular case it's perfect. It
> only has to be unique per node, and only a few million times. I could even
> use a counter, but then I'd have to have a process on each node just to own
> the counter.

You can create a public ets table and use ets:update_counter to
atomically update it.

More information about the erlang-questions mailing list