<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You might want to look at the v1 UUID
      as created by <a class="moz-txt-link-freetext" href="https://github.com/okeuday/uuid">https://github.com/okeuday/uuid</a> since the node id
      part of the v1 UUID is specific to both the Erlang node (including
      the MAC address) and the Erlang pid that created the UUID state. 
      For time synchronization among nodes ntpd is normally used to
      minimize time differences, which then influences the time reported
      by erlang:now/0 and erlang:system_time/1.<br>
      <br>
      On 04/19/2015 11:44 PM, Sergej Jurečko wrote:<br>
    </div>
    <blockquote
cite="mid:CAAbM2=Zw7fUOM9HfujxNejpKAaAUCC5WK7VOEZx3V72H2_bUNw@mail.gmail.com"
      type="cite">
      <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
          moz-do-not-send="true" 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
            moz-do-not-send="true"
            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 moz-do-not-send="true"
            href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
          <a moz-do-not-send="true"
            href="http://erlang.org/mailman/listinfo/erlang-questions"
            target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>