View Source Commanded.UUID (Commanded v1.4.3)

Generate and format random, version 4 UUIDs.

Summary

Types

A hex-encoded UUID string.

A raw binary representation of a UUID.

Functions

Converts a string representing a UUID into a raw binary.

Generates a random, version 4 UUID.

Types

@type hex() :: <<_::288>>

A hex-encoded UUID string.

@type raw() :: <<_::128>>

A raw binary representation of a UUID.

Functions

Link to this function

binary_to_string!(raw_uuid)

View Source
@spec binary_to_string!(raw()) :: hex()
@spec string_to_binary!(hex()) :: raw()

Converts a string representing a UUID into a raw binary.

@spec uuid4() :: hex()

Generates a random, version 4 UUID.