ifesdjeen opened a new pull request, #3704:
URL: https://github.com/apache/cassandra/pull/3704

   JDK UUID Generator uses the following code:
   
           randomBytes[6]  &= 0x0f;  /* clear version        */
           randomBytes[6]  |= 0x40;  /* set to version 4     */
           randomBytes[8]  &= 0x3f;  /* clear variant        */
           randomBytes[8]  |= 0x80;  /* set to IETF variant  */
   
   Which means that 6ths and 8ths _bytes_ are cleared with patterns using &, 
and then flags are set with |.
   
   I _think_ this is right but please double check my logic.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to