Skip to content

Commit 9f694ab

Browse files
committed
doc: note non-monotonic clock in crypto.randomUUIDv7
Signed-off-by: nabeel378 <mohammadnabeeljameel@gmail.com>
1 parent dec5973 commit 9f694ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/crypto.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5843,8 +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.
5847-
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.
58485849
### `crypto.scrypt(password, salt, keylen[, options], callback)`
58495850

58505851
<!-- YAML

0 commit comments

Comments
 (0)