Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
plugin-baby
on March 3, 2023
|
parent
|
context
|
favorite
| on:
Demystifying bitwise operations, a gentle C tutori...
When would you want to perform bitwise operations on a UUID?
edflsafoiewq
on March 4, 2023
|
next
[–]
A UUID is a bunch of bit fields packed together: the version/variant, and depending on the version, fields for the datetime, MAC address, node ID, etc. You'd use bit ops to both construct and extract the fields.
whateveracct
on March 4, 2023
|
prev
[–]
Say you need 5 UUIDs derived from one (say a primary key and some set of idempotency keys). You can mask them.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: