From 1e41c3d2cb7b7a594587941c4f9f81a0d3fbd7a4 Mon Sep 17 00:00:00 2001 From: nick evans Date: Tue, 21 May 2024 13:17:43 -0400 Subject: [PATCH] Update UUID documentation with RFC9562 links RFC9562 was released almost two weeks ago, so we can replace the "draft" UUIDv7 URL with the final RFC URL too. RFC9562 obsoletes RFC4122, so I replaced its link as well. --- lib/random/formatter.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/random/formatter.rb b/lib/random/formatter.rb index 037f9d8..2b5cf71 100644 --- a/lib/random/formatter.rb +++ b/lib/random/formatter.rb @@ -165,7 +165,7 @@ def urlsafe_base64(n=nil, padding=false) # # The result contains 122 random bits (15.25 random bytes). # - # See RFC4122[https://www.rfc-editor.org/rfc/rfc4122] for details of UUID. + # See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv4. # def uuid ary = random_bytes(16) @@ -204,8 +204,7 @@ def uuid # Note that this method cannot be made reproducible because its output # includes not only random bits but also timestamp. # - # See draft-ietf-uuidrev-rfc4122bis[https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/] - # for details of UUIDv7. + # See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv7. # # ==== Monotonicity # @@ -242,7 +241,7 @@ def uuid # # Counters and other mechanisms for stronger guarantees of monotonicity are # not implemented. Applications with stricter requirements should follow - # {Section 6.2}[https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-07.html#monotonicity_counters] + # {Section 6.2}[https://www.rfc-editor.org/rfc/rfc9562.html#name-monotonicity-and-counters] # of the specification. # def uuid_v7(extra_timestamp_bits: 0)