ron icon indicating copy to clipboard operation
ron copied to clipboard

Variant or Variety?

Open cblp opened this issue 7 years ago • 7 comments

uuid.md mentions the word "variant" 2 times and the word "variety" 3 times. Is it the same? What is the proper name?

cblp avatar Jun 23 '18 17:06 cblp

"Variant" comes from RFC4122. "Variety" is a RON specific thing. Well, uuid.md needs to be extended...

gritzko avatar Jun 26 '18 19:06 gritzko

Just choose one. Any.

cblp avatar Jun 26 '18 19:06 cblp

Which do you prefer?

cblp avatar Jun 26 '18 19:06 cblp

These are different things. Variant is specified by the two m.s.b. of the second 64-bit word. All RON UUIDs have the same variant.

Variety is 4 m.s.bits of the first word. That one has a meaning in the context of the RON UUID version (the next 2 m.s. bits of the second word).

For example, A/LED has

  1. variant 0,
  2. version 0, and
  3. variety 10 (hex A).

That means, respectively,

  1. variant: RON UUID,
  2. version: RON name UUID,
  3. variety: RON name UUID, IATA airport code.

gritzko avatar Jun 26 '18 20:06 gritzko

Oh, now I see! Thank you!

cblp avatar Jun 26 '18 20:06 cblp

invalid question

cblp avatar Jun 26 '18 20:06 cblp

Is version the same as scheme?

cblp avatar Jun 26 '18 20:06 cblp