Re: UUIDs



On Fri, 08 Feb 2008 22:23:58 -0500 Lew Pitcher <lpitcher@xxxxxxxxxxxx> wrote:
| phil-news-nospam@xxxxxxxx wrote:
|> Anyone know why there are '-' characters in UUIDs at the particular positions
|> that they exist in? It seems the UUID is stored internally in resources like
|> filesystems without the '-' characters. Yet they serve no apparent value in
|> helping humans remember so many hexadecimal digits. Why even have them at
|> all? But really, why in the positions they are in?
|>
|
| From the document that defines UUIDs
| (http://www.opengroup.org/onlinepubs/9629399/apdxa.htm#tagtcjh_34)
|
| String Representation of UUIDs
|
| For use in human readable text, a UUID string representation is specified as
| a sequence of fields, some of which are separated by single dashes.
|
| Each field is treated as an integer and has its value printed as a
| zero-filled hexadecimal digit string with the most significant digit first.
| The hexadecimal values a to f inclusive are output as lower case characters,
| and are case insensitive on input. The sequence is the same as the UUID
| constructed type.
|
|
| The formal definition of the UUID string representation is provided by the
| following extended BNF:
|
| UUID = <time_low> <hyphen> <time_mid> <hyphen>
| <time_high_and_version> <hyphen>
| <clock_seq_and_reserved>
| <clock_seq_low> <hyphen> <node>

Thanks. Now I know it has some real meaning.

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2008-02-09-2339@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: UUIDs
    ... helping humans remember so many hexadecimal digits. ... For use in human readable text, a UUID string representation is specified as ... The hexadecimal values a to f inclusive are output as lower case characters, ...
    (comp.os.linux.development.system)
  • Re: Generate UUID that fits on 37 digits [0-9]
    ... I need to generate uuid that will fits ... Allow more characters per position. ... According to RFC 4122, UUIDs should be given in hex digits anyway, see ...
    (comp.programming)