Lines Matching defs:version
4 uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
94 version the UUID version number (1 through 5, meaningful only
99 version=None):
117 The 'version' argument is optional; if given, the resulting UUID
118 will have its variant and version number set according to RFC 4122,
157 if version is not None:
158 if not 1 <= version <= 5:
159 raise ValueError('illegal version number')
163 # Set the version number.
165 int |= version << 76L
269 # The version bits are only meaningful for RFC 4122 UUIDs.
273 version = property(get_version)
420 # When the system provides a version-1 UUID generator, use it (but don't
442 clock_seq_hi_variant, clock_seq_low, node), version=1)
448 return UUID(bytes=hash[:16], version=3)
453 # When the system provides a version-4 UUID generator, use it.
461 return UUID(bytes=os.urandom(16), version=4)
465 return UUID(bytes=bytes, version=4)
471 return UUID(bytes=hash[:16], version=5)