@@ -28,7 +28,7 @@ Version 1 (timestamp):
2828
2929``` javascript
3030const uuidv1 = require (' uuid/v1' );
31- uuidv1 (); // ⇨ '1c572360-faca-11e7-83ee-9d836d45ff41 '
31+ uuidv1 (); // ⇨ '3b99e3e0-7598-11e8-90be-95472fb3ecbd '
3232
3333```
3434
@@ -56,7 +56,7 @@ Version 4 (random):
5656
5757``` javascript
5858const uuidv4 = require (' uuid/v4' );
59- uuidv4 (); // ⇨ '45db52e1-f95c-4b5f-99a2-8b8d978c99b4 '
59+ uuidv4 (); // ⇨ '3a017fc5-4f50-4db9-b0ce-4547ba0a1bfd '
6060
6161```
6262
@@ -167,8 +167,8 @@ Example: In-place generation of two binary IDs
167167``` javascript
168168// Generate two ids in an array
169169const arr = new Array ();
170- uuidv1 (null , arr, 0 ); // ⇨ [ 28, 97, 14, 112, 250, 202 , 17, 231 , 146, 52, 157, 131, 109, 69, 255, 65 ]
171- uuidv1 (null , arr, 16 ); // ⇨ [ 28, 97, 14, 112, 250, 202 , 17, 231 , 146, 52, 157, 131, 109, 69, 255, 65, 28, 97, 53, 128, 250, 202 , 17, 231 , 146, 52, 157, 131, 109, 69, 255, 65 ]
170+ uuidv1 (null , arr, 0 ); // ⇨ [ 59, 155, 106, 128, 117, 152 , 17, 232 , 146, 52, 149, 71, 47, 179, 236, 189 ]
171+ uuidv1 (null , arr, 16 ); // ⇨ [ 59, 155, 106, 128, 117, 152 , 17, 232 , 146, 52, 149, 71, 47, 179, 236, 189, 59, 155, 145, 144, 117, 152 , 17, 232 , 146, 52, 149, 71, 47, 179, 236, 189 ]
172172
173173```
174174
@@ -237,8 +237,8 @@ Example: Generate two IDs in a single buffer
237237
238238``` javascript
239239const buffer = new Array ();
240- uuidv4 (null , buffer, 0 ); // ⇨ [ 253, 175, 55, 222, 195, 132, 75, 162, 156, 105, 127, 104, 58, 195, 192, 66 ]
241- uuidv4 (null , buffer, 16 ); // ⇨ [ 253, 175, 55, 222, 195, 132, 75, 162, 156, 105, 127, 104, 58, 195, 192, 66, 210, 238, 41, 99, 195, 139 , 75, 146, 144, 79, 164, 48, 65, 180, 91, 48 ]
240+ uuidv4 (null , buffer, 0 ); // ⇨ [ 202, 18, 44, 182, 222, 65, 71, 82, 164, 80, 208, 169, 173, 93, 252, 13 ]
241+ uuidv4 (null , buffer, 16 ); // ⇨ [ 202, 18, 44, 182, 222, 65, 71, 82, 164, 80, 208, 169, 173, 93, 252, 13, 243, 221, 205, 191, 130, 146 , 75, 199, 146, 71, 96, 195, 45, 156, 124, 9 ]
242242
243243```
244244
0 commit comments