NSUUID does not conform to RFC 4122 version 4 as stated in docs
| Originator: | clay | ||
| Number: | rdar://16279432 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
Summary: The documentation for NSUUID states: "UUIDs created by NSUUID conform to RFC 4122 version 4 and are created with random bytes." But RFC 4122 states: "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" through "f" are output as lower case characters and are case insensitive on input." When using an NSUUID, the letters "a" through "f" are the *upper* case variants, not lowercase, in violation of RFC 4122 Steps to Reproduce: 1. NSLog(@"%@", [[NSUUID UUID] UUIDString]) Expected Results: The string should output with lowercase letters Actual Results: The string outputs with uppercase letters Version: iOS 7 Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!