Skip to main content

new_uuid

Function new_uuid 

Source
pub fn new_uuid() -> String
Expand description

Returns the current UTC time as an ISO-8601 string (YYYY-MM-DDTHH:MM:SSZ). A random UUID v4, with the version and variant bits set.

Hand-rolled rather than pulled in as a crate for the same reason base32 is: it is eleven lines, and rand is already here. users.rs and the TOTP importer both call it, so an entry created by the desktop app’s import gets an id shaped exactly like one created anywhere else — which matters because entry_ck falls back to a legacy tuple for entries that have none.