Make GUID generation on POSIX compliant with GUID v4 format.
Per RFC 4122 section 4.4, the format of GUID version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where y is one of [8, 9, A, B]. This CL updates base::GenerateGUID() on POSIX to be compliant with the GUID v4 format. This fix is proposed by Alex Vakulenko <avakulenko@chromium.org> BUG=None TEST=base_unittests Review URL: https://codereview.chromium.org/541633005 Cr-Commit-Position: refs/heads/master@{#293518}
Showing
Please register or sign in to comment