Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Follow RFC4122#54

Open
andy-k wants to merge 2 commits into
assaf:masterfrom
andy-k:follow-rfc4122
Open

Follow RFC4122#54
andy-k wants to merge 2 commits into
assaf:masterfrom
andy-k:follow-rfc4122

Conversation

@andy-k
Copy link
Copy Markdown

@andy-k andy-k commented Apr 10, 2019

This patch improves conformance to RFC4122:

  • 4.1.1 Octet 8 is 0b10xxxxxx (the variant specified in the RFC).
  • 4.1.3 Octet 6 is 0b0001xxxx (version 1, time-based).
  • 4.1.4 Time field is 60 bits counting 100ns since UUID epoch (1582-10-15).
  • 4.1.5 Clock sequence is 14 bits since it's multiplexed with variant.

Existing implementation before this patch:

  • Octet 8 could be anything.
  • Octet 6 was 0bxxxxxxx1.
  • Time field was 64 bits counting 100ns since Unix epoch (1970-01-01).
  • Clock sequence was 16 bits.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant