google / uuid

Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
BSD 3-Clause "New" or "Revised" License
5.26k stars 362 forks source link

Fixed masking of version bits #56

Closed reneklootwijk closed 4 years ago

reneklootwijk commented 4 years ago

Instead of masking the 4 most significant bits (0xf0) the 4 least significant bits were masked (0x0f) and then or'ed with 0x40.