uuid6 / uuid6-ietf-draft

Next Generation UUID Formats
https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/
187 stars 11 forks source link

Weaken language re (N-1) counter initialization approach #109

Closed LiosK closed 2 years ago

LiosK commented 2 years ago

Change Proposal Template

Source (Select one.)

Change Reason (Select all that apply.)

Draft Number, Full Section, Name

6.2. Monotonicity and Counters - Counter Rollover Guards:

Current Text:

The technique from Fixed-Length Dedicated Counter Seeding which describes allocating a segment of the fixed-length counter as a rollover guard is also recommended and SHOULD be employed to help mitigate counter rollover issues. (snip)

Proposed Text:

The technique from Fixed-Length Dedicated Counter Seeding which describes allocating a segment of the fixed-length counter as a rollover guard is also helpful to mitigate counter rollover issues. (snip)


Other Supporting information below:

To align with the MAY wording used in the Fixed-Length Dedicated Counter Seeding: paragraph.

Implementations utilizing fixed-length counter method MAY also choose to randomly initialize a portion counter rather than the entire counter.

Further discussion: https://github.com/uuid6/uuid6-ietf-draft/issues/60#issuecomment-1091738675

See also https://github.com/LiosK/infinite-uuid7-rs if you are interested in how often a counter rollover could occur. With a 42-bit counter, it almost never happens.