[erlang-questions] Does erlang:now() guarantee that subsequent calls to this BIF returns continuously increasing values even in erlang cluster?
Mon Apr 20 08:44:33 CEST 2015
It does not guarantee unique values in cluster.
On Apr 20, 2015 8:42 AM, "Daniel" <> wrote:
> Hi, dear list,
> I am looking for a global sequence generator in erlang cluster.
> I think erlang:now() is promising, because it is fast enough and “also
> guarantees that subsequent calls to this BIF returns continuously
> increasing values”. But I am not quite sure whether this guarantee also
> works for erlang cluster which have several nodes running on different
> I have read Time and time correction in Erlang (
> http://www.erlang.org/doc/apps/erts/time_correction.html), but still have
> no conclusion.
> Daniel Liu
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions