View Source BitcrowdEcto.Random (bitcrowd_ecto v0.16.0)
Various random value generators.
Link to this section Summary
Functions
Generates a random token from an alphabet designed to have no ambiguities.
Generates a random token suitable for inclusion in URLs.
Generates a UUID V4.
Link to this section Functions
@spec unambiguous_human_token(length :: non_neg_integer()) :: String.t()
Generates a random token from an alphabet designed to have no ambiguities.
@spec url_token(bytes :: non_neg_integer()) :: String.t()
Generates a random token suitable for inclusion in URLs.
@spec uuid() :: String.t()
Generates a UUID V4.