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-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -367,7 +367,7 @@ Create an RFC version 7 (random) UUID
367
367
|[`options.msecs = (current time)`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
368
368
|[`options.random = (random)`]|`Array` of 16 random bytes (0-255) used to generate other fields, above |
369
369
|[`options.rng`]| Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
370
-
|[`options.seq = (random)`]| 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. |
370
+
|[`options.seq = (random)`]| 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help ensure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. |
371
371
|[`buffer`]|`Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset`|
372
372
|[`offset` = 0]|`Number` Index to start writing UUID bytes in `buffer`|
373
373
|_returns_| UUID `String` if no `buffer` is specified, otherwise returns `buffer`|
@@ -475,7 +475,7 @@ defined by RFC9562
475
475
476
476
## `options` Handling for Timestamp UUIDs
477
477
478
-
Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to insure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
478
+
Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to ensure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
479
479
480
480
- Without `options`: Internal state is utilized to improve UUID uniqueness.
481
481
- With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed.
Copy file name to clipboardExpand all lines: README_js.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -375,7 +375,7 @@ Create an RFC version 7 (random) UUID
375
375
|[`options.msecs = (current time)`]| RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
376
376
|[`options.random = (random)`]|`Array` of 16 random bytes (0-255) used to generate other fields, above |
377
377
|[`options.rng`]| Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
378
-
|[`options.seq = (random)`]| 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. |
378
+
|[`options.seq = (random)`]| 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help ensure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. |
379
379
|[`buffer`]|`Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset`|
380
380
|[`offset` = 0]|`Number` Index to start writing UUID bytes in `buffer`|
381
381
|_returns_| UUID `String` if no `buffer` is specified, otherwise returns `buffer`|
@@ -483,7 +483,7 @@ defined by RFC9562
483
483
484
484
## `options` Handling for Timestamp UUIDs
485
485
486
-
Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to insure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
486
+
Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to ensure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
487
487
488
488
- Without `options`: Internal state is utilized to improve UUID uniqueness.
489
489
- With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed.
0 commit comments