Skip to content

Commit b558fc0

Browse files
nevansmatzbot
authored andcommitted
[ruby/securerandom] 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. ruby/securerandom@1e41c3d2cb
1 parent 92ab2da commit b558fc0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/random/formatter.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def urlsafe_base64(n=nil, padding=false)
165165
#
166166
# The result contains 122 random bits (15.25 random bytes).
167167
#
168-
# See RFC4122[https://www.rfc-editor.org/rfc/rfc4122] for details of UUID.
168+
# See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv4.
169169
#
170170
def uuid
171171
ary = random_bytes(16)
@@ -204,8 +204,7 @@ def uuid
204204
# Note that this method cannot be made reproducible because its output
205205
# includes not only random bits but also timestamp.
206206
#
207-
# See draft-ietf-uuidrev-rfc4122bis[https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/]
208-
# for details of UUIDv7.
207+
# See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv7.
209208
#
210209
# ==== Monotonicity
211210
#
@@ -242,7 +241,7 @@ def uuid
242241
#
243242
# Counters and other mechanisms for stronger guarantees of monotonicity are
244243
# not implemented. Applications with stricter requirements should follow
245-
# {Section 6.2}[https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-07.html#monotonicity_counters]
244+
# {Section 6.2}[https://www.rfc-editor.org/rfc/rfc9562.html#name-monotonicity-and-counters]
246245
# of the specification.
247246
#
248247
def uuid_v7(extra_timestamp_bits: 0)

0 commit comments

Comments
 (0)