![]() It's very light weight and easy to understand. You can generate UUID v4 by importing package from Google:Īlso, you can try package I created. So we have 122 bits left which can be randomly generated. ![]() It uses 128 bits, Out of which 4 bits are fixed to tell version number and 2 bits are fixed to tell variant. Version 4 is most widely used UUID and its based on random bits generation. u = (u | 0x40) & 0x4F // what does this do?Īns: We show version number with the most 4 significant bits so in this case version 4 so we want to set it with "0100". u = (u | 0x80) & 0xBF // what does this do?Īns: This section defines variant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |