uuid_v7

Function uuid_v7 

Source
pub fn uuid_v7() -> String
Expand description

A time-ordered id, without pulling a uuid crate into the tree for one call.

UUIDv7 layout: 48 bits of Unix milliseconds, then version and variant bits, then randomness. The randomness comes from the system, via getrandom through the standard library’s hash seed — good enough for an id at the edge, and never reached inside a fold, which is where determinism actually matters (§3.7).