Is there anywhere to compress/convert/encode/encrypt a UUID into an unsigned int?
I read UUID’s from a sql table, the history is ugly and i can not change… I have only an unsigned int to store it in. This is C++ in case that makes a difference
Any thoughts on this?
Thanks
Reza
Use a CRC32 of the UUID (I assume you mean 32-bit integer). There’s obviously the potential for collisions, but if there’s a collision it should be rare enough you can just fix it manually.
Note that if this is MS SQL Server, you can use the
CHECKSUMfunction to do a crc32 hash on the server to update your table.