Packages

Lily is designed to be a web framework for Gleam that allows for real-time updates while preserving offline functionality.

Current section

Files

Jump to
lily src lily lily_server_ffi.erl
Raw

src/lily/lily_server_ffi.erl

-module(lily_server_ffi).
-export([generate_client_id/0]).
generate_client_id() ->
Bytes = crypto:strong_rand_bytes(16),
string:lowercase(binary:encode_hex(Bytes)).