Nori language

std/uuid

import "std/uuid" as uuid

std/uuid: RFC 4122 UUIDs, formatted canonically (8-4-4-4-12 lowercase hex). Two kinds:

fn v4(inout r: rand::Rng) -> Str

a random (v4) UUID, drawn from r.

fn v7(inout r: rand::Rng) -> Str

a time-ordered (v7) UUID: 48-bit Unix-ms prefix + random, drawn from r.


Standard library contents