std/uuid

Standard Library documentation

Pure ZuzuScript UUID v1 generator.

Module

Name
std/uuid
Area
Standard Library
Source
modules/std/uuid.zzm

NAME

std/uuid - Pure ZuzuScript UUID v1 generator.

SYNOPSIS

  from std/uuid import create_uuid, create_uuid_binary;

  let text := create_uuid();
  let raw := create_uuid_binary();

IMPLEMENTATION SUPPORT

This module is supported by all implementations of ZuzuScript.

DESCRIPTION

This module implements UUID version 1 generation using only ZuzuScript code.

EXPORTS

Functions

  • create_uuid_binary()

    Parameters: none. Returns: BinaryString. Returns a single UUID as 16 raw bytes.

  • create_uuid()

    Parameters: none. Returns: String. Returns a single UUID as lowercase hexadecimal text with hyphens in the usual 8-4-4-4-12 layout.

COPYRIGHT AND LICENCE

std/uuid is copyright Toby Inkster.

It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.