rnewson commented on code in PR #5699:
URL: https://github.com/apache/couchdb/pull/5699#discussion_r2427325053


##########
src/couch/src/couch_uuids.erl:
##########
@@ -122,37 +126,35 @@ inc() ->
     rand:uniform(16#ffd).
 
 state() ->
-    AlgoStr = config:get("uuids", "algorithm", "sequential"),
+    AlgoStr = config_algorithm(),
     case couch_util:to_existing_atom(AlgoStr) of
         random ->
             random;
         utc_random ->
-            ClockSeq = micros_since_epoch(os:timestamp()),
+            ClockSeq = micros_since_epoch(),
             {utc_random, ClockSeq};
         utc_id ->
-            ClockSeq = micros_since_epoch(os:timestamp()),
+            ClockSeq = micros_since_epoch(),
             UtcIdSuffix = config:get("uuids", "utc_id_suffix", ""),
             {utc_id, UtcIdSuffix, ClockSeq};
         sequential ->
             {sequential, new_prefix(), inc()};
         uuid_v7 ->
             uuid_v7;
+        uuid_v7_hex ->

Review Comment:
   I'm still not comfortable calling something an UUID v7 that doesn't conform 
to the RFC 9562 formatting (when strings). I appreciate couch_uuids has always 
returned malformed uuids but this is the first time we're claiming a particular 
'version', and that only makes sense to me in RFC 9562 terms.
   
   I don't see a reason to provide two formats for essentially the same thing, 
so I think it has to come to a dev@ vote to get a decision.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to