UUID V7 has 74 bits of random data, which rounds to 10 ubyte's. If no random data is given, random data is generated.
import std.datetime : DateTime, SysTime; SysTime st = DateTime(2025, 8, 19, 10, 38, 45); UUID u = UUID(st); SysTime o = u.v7Timestamp(); assert(o == st, st.toString() ~ " | " ~ o.toString());
UUID V7 constructor
This implementation is not guaranteed to use a cryptographically secure PRNG. For more information please see: std.random.unpredictableSeed