You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -338,10 +338,10 @@ Create an RFC version 7 (random) UUID
338
338
|||
339
339
| --- | --- |
340
340
|[`options`]|`Object` with one or more of the following properties: |
341
-
|[`options.msecs`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
341
+
|[`options.msecs`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch). Default = `Date.now()`|
342
342
|[`options.random`]|`Array` of 16 random bytes (0-255) |
343
343
|[`options.rng`]| Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
344
-
|[`options.seq`]|31 bit monotonic sequence counter as `Number` between 0 - 0x7fffffff|
344
+
|[`options.seq`]|32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value.|
345
345
|[`buffer`]|`Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset`|
346
346
|[`offset` = 0]|`Number` Index to start writing UUID bytes in `buffer`|
347
347
|_returns_| UUID `String` if no `buffer` is specified, otherwise returns `buffer`|
Copy file name to clipboardexpand all lines: README_js.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -346,10 +346,10 @@ Create an RFC version 7 (random) UUID
346
346
|||
347
347
| --- | --- |
348
348
|[`options`]|`Object` with one or more of the following properties: |
349
-
|[`options.msecs`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
349
+
|[`options.msecs`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch). Default = `Date.now()`|
350
350
|[`options.random`]|`Array` of 16 random bytes (0-255) |
351
351
|[`options.rng`]| Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
352
-
|[`options.seq`]|31 bit monotonic sequence counter as `Number` between 0 - 0x7fffffff|
352
+
|[`options.seq`]|32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value.|
353
353
|[`buffer`]|`Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset`|
354
354
|[`offset` = 0]|`Number` Index to start writing UUID bytes in `buffer`|
355
355
|_returns_| UUID `String` if no `buffer` is specified, otherwise returns `buffer`|
0 commit comments