Hacker News new | ask | show | jobs
by ijustdontcare 3200 days ago
what about uuid, a well researched and established standard?
3 comments

> Compact. It uses more symbols than UUID (A-Za-z0-9_~) and has the same number of unique options in just 22 symbols instead of 36.
This is basically UUIDv4, encoded with a url-safe variant of base64 (except UUIDv4 reserves a few bits for saying "this is a UUID, specifically version 4").
UUIDs are not secure unless they are version 4 (random) and generated from a secure randomness source.
What do you mean by secure? Unpredictable?
The same applies for any unique ids in general.
Yes, but the holy UUID standard specifies multiple ways of generating them from sticks and stones, invented before people knew how to properly generate random bytes.