pub fn random_uuid() -> Result<String, RandomSourceError>Expand description
What:
A fresh random version-4 UUID from the operating system’s source.
Result<String, RandomSourceError> is “the identifier,
or why not”.
Why:
Tokens and transaction IDs must not be predictable or collide between processes.
In TS you’d write (pseudocode):
function randomUuid(): string { return randomUUID(); }