@@ -187,41 +187,38 @@ The :mod:`uuid` module defines the following functions:
187
187
.. index :: single: getnode
188
188
189
189
190
+ .. index :: single: uuid1
190
191
.. function :: uuid1(node=None, clock_seq=None)
191
192
192
193
Generate a UUID from a host ID, sequence number, and the current time. If *node *
193
194
is not given, :func: `getnode ` is used to obtain the hardware address. If
194
195
*clock_seq * is given, it is used as the sequence number; otherwise a random
195
196
14-bit sequence number is chosen.
196
197
197
- .. index :: single: uuid1
198
-
199
198
199
+ .. index :: single: uuid3
200
200
.. function :: uuid3(namespace, name)
201
201
202
202
Generate a UUID based on the MD5 hash of a namespace identifier (which is a
203
203
UUID) and a name (which is a :class: `bytes ` object or a string
204
204
that will be encoded using UTF-8).
205
205
206
- .. index :: single: uuid3
207
-
208
206
207
+ .. index :: single: uuid4
209
208
.. function :: uuid4()
210
209
211
210
Generate a random UUID.
212
211
213
- .. index :: single: uuid4
214
-
215
212
213
+ .. index :: single: uuid5
216
214
.. function :: uuid5(namespace, name)
217
215
218
216
Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a
219
217
UUID) and a name (which is a :class: `bytes ` object or a string
220
218
that will be encoded using UTF-8).
221
219
222
- .. index :: single: uuid5
223
-
224
220
221
+ .. index :: single: uuid8
225
222
.. function :: uuid8(a=None, b=None, c=None)
226
223
227
224
Generate a pseudo-random UUID according to
@@ -235,8 +232,6 @@ The :mod:`uuid` module defines the following functions:
235
232
236
233
.. versionadded :: 3.14
237
234
238
- .. index :: single: uuid8
239
-
240
235
241
236
The :mod: `uuid ` module defines the following namespace identifiers for use with
242
237
:func: `uuid3 ` or :func: `uuid5 `.
0 commit comments