You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the following snippet: https://github.com/zyro/elixir-uuid/blob/master/lib/uuid.ex#L440-L448
It seems that the whole thing is equivalent to :crypto.rand_bytes(2) (well, the first 14 bits) since the random generator is reseeded at every call, so there is no sequencing going on. Is this a problem?
The text was updated successfully, but these errors were encountered:
If the previous value of the clock sequence is known, it can just be incremented; otherwise it should be set to a random or high-quality pseudo-random value.
So a random clock sequence is OK. Alternatively UUID.uuid1/3 takes a clock sequence and node values, so the application can choose to track the previous ones if this is needed.
On the following snippet: https://github.com/zyro/elixir-uuid/blob/master/lib/uuid.ex#L440-L448
It seems that the whole thing is equivalent to
:crypto.rand_bytes(2)
(well, the first 14 bits) since the random generator is reseeded at every call, so there is no sequencing going on. Is this a problem?The text was updated successfully, but these errors were encountered: