Are UUIDs secure for creating a unique user session identifier?
That way, a UUIDv4 (random) will never collide with a UUIDv1 (timestamp+mac+...), which again will never collide with UUIDv5 (SHA-1).
So if one of the UUID generation schemes is flawed, these are easily filtered out, and moreover, will never interfere with any other UUID version/scheme.
It's easier to just read 16 bytes from /dev/urandom and encode it in hex/base64 yourself for a random token.