Skip to content

Commit 2f8063e

Browse files
authored
doc: note non-monotonic clock in crypto.randomUUIDv7
Signed-off-by: nabeel378 <mohammadnabeeljameel@gmail.com> PR-URL: #62600 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ff08094 commit 2f8063e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/crypto.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5843,7 +5843,9 @@ added: REPLACEME
58435843
Generates a random [RFC 9562][] version 7 UUID. The UUID contains a millisecond
58445844
precision Unix timestamp in the most significant 48 bits, followed by
58455845
cryptographically secure random bits for the remaining fields, making it
5846-
suitable for use as a database key with time-based sorting.
5846+
suitable for use as a database key with time-based sorting. The embedded
5847+
timestamp relies on a non-monotonic clock and is not guaranteed to be strictly
5848+
increasing.
58475849

58485850
### `crypto.scrypt(password, salt, keylen[, options], callback)`
58495851

0 commit comments

Comments
 (0)