Skip to content

Commit c798973

Browse files
committed
crypto: add monotonic counter doc
1 parent 2f90718 commit c798973

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/crypto.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,6 +5838,10 @@ added: REPLACEME
58385838
random data to generate up to 128 random UUIDs. To generate a UUID
58395839
without using the cache, set `disableEntropyCache` to `true`.
58405840
**Default:** `false`.
5841+
* `monotonic` {boolean} When `true`, guarantees that UUIDs generated
5842+
within the same millisecond are strictly increasing by using a counter
5843+
in the `rand_a` field, as described in [RFC 9562][] Section 6.2.
5844+
**Default:** `false`.
58415845
* Returns: {string}
58425846

58435847
Generates a random [RFC 9562][] version 7 UUID. The UUID contains a millisecond

0 commit comments

Comments
 (0)