Euclid.Random.string
You're seeing just the function
string
, go back to Euclid.Random module for more information.
Specs
Returns a base64- or base32-encoded random string of 32 characters.
See Euclid.Random.string/2
.
Specs
string(character_count :: pos_integer(), encoding :: encoding()) :: binary()
Returns a base64- or base32-encoded random string of given length
Examples
iex> Euclid.Random.string()
"Sr/y4m/YiVSJcIgI5lG+76vMfaZ7KZ7c"
iex> Euclid.Random.string(5)
"9pJrK"
iex> Euclid.Random.string(5, :base32)
"AC53Z"