<p dir="ltr">It does not guarantee unique values in cluster.<br></p>
<p dir="ltr">Sergej</p>
<div class="gmail_quote">On Apr 20, 2015 8:42 AM, "Daniel" <<a href="mailto:liudanking@gmail.com">liudanking@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, dear list,<br>
<br>
I am looking for a global sequence generator in erlang cluster.<br>
<br>
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 servers?<br>
<br>
I have read Time and time correction in Erlang (<a href="http://www.erlang.org/doc/apps/erts/time_correction.html" target="_blank">http://www.erlang.org/doc/apps/erts/time_correction.html</a>), but still have no conclusion.<br>
<br>
Daniel Liu<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>