Packages
Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.
Current section
Files
Jump to
Current section
Files
lib/raxol/core/id.ex
defmodule Raxol.Core.ID do
@moduledoc """
Provides functions for generating unique identifiers.
"""
@doc """
Generates a unique string identifier.
Uses `System.unique_integer([:positive])` and converts it to a string.
While unique within the runtime, these are not guaranteed universally unique like UUIDs.
"""
@spec generate() :: String.t()
def generate do
System.unique_integer([:positive])
|> Integer.to_string()
end
end