From cb93d10ae559b0cf0f0935ddc1cc50dda65c6df8 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 12 Dec 2023 15:35:59 +0900 Subject: [PATCH] [ruby/securerandom] [DOC] Improve the document about reproducibility of uuid_v7 https://github.com/ruby/securerandom/pull/19/files#r1329476195 https://github.com/ruby/securerandom/commit/156cbb8448 --- lib/random/formatter.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/random/formatter.rb b/lib/random/formatter.rb index 7fe7785e1ab534..e7ee4db7c09417 100644 --- a/lib/random/formatter.rb +++ b/lib/random/formatter.rb @@ -201,9 +201,8 @@ def uuid # # The result contains 74 random bits (9.25 random bytes). # - # Note that this method cannot be made reproducable with Kernel#srand, which - # can only affect the random bits. The sorted bits will still be based on - # Process.clock_gettime. + # Note that this method cannot be made reproducable 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.