ids/uuid

A module for generating UUIDs (Universally Unique Identifiers).

The module currently supports UUID versions:

Functions

pub fn generate_v4() -> Result(String, String)

Generates a version 4 (random) UUID. The version 4 UUID produced by this function is generated using a cryptographically secure random number generator.

Usage

import ids/uuid

let assert Ok(id) = uuid.generate_v4()
Search Document