mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-23 07:18:54 +08:00
5cdcb15e3d
* Add dynamic supervisor for session processes * Add basic UI listing current sessions * Handle review comments * Make tests not dependent on restarting SessionSupervisor
13 lines
249 B
Elixir
13 lines
249 B
Elixir
defmodule LiveBook.Utils do
|
|
@moduledoc false
|
|
|
|
@type id :: binary()
|
|
|
|
@doc """
|
|
Generates a random binary id.
|
|
"""
|
|
@spec random_id() :: binary()
|
|
def random_id() do
|
|
:crypto.strong_rand_bytes(20) |> Base.encode32(case: :lower)
|
|
end
|
|
end
|