Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
3eb7988a1663
3mo ago
0 comments
Save
Share
While it might be invalid, will most libraries choke if you give them a pseudo UUIDv4?
0 comments
3 comments · 1 top-level
top
newest
oldest
efilife
3mo ago
· 2 in thread
What do you mean? Are you talking about validation of UUIDs?
3eb7988a1663
OP
3mo ago
If you generate random bytes, which are unlikely to conform to the UUIDv4 spec, my guess is that most libraries will silently accept the id. That is, generating random bytes, will probably work just work.
efilife
3mo ago
But what libraries are you talking about? What is their purpose?
j
/
k
navigate · click thread line to collapse