Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
3eb7988a1663
· 9mo ago · 0 comments
While it might be invalid, will most libraries choke if you give them a pseudo UUIDv4?
Comments
[–]
efilife
9mo ago
What do you mean? Are you talking about validation of UUIDs?
[–]
3eb7988a1663
OP
9mo 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
9mo ago
But what libraries are you talking about? What is their purpose?