View Source Nostr.Util (Nostr v0.1.3)

Functions that have no home for now but that are meant to be reusable

Link to this section Summary

Functions

Generates a random hex string composed of size*2 characters

Link to this section Functions

Link to this function

generate_random_id(size \\ 16)

View Source
@spec generate_random_id(integer()) :: binary()

Generates a random hex string composed of size*2 characters

examples

Examples

iex> Nostr.Util.generate_random_id(16)