View Source Euclid.Extra.Random (Euclid v0.4.0)
This module is deprecated. Use `Euclid.Random` instead.
Helpers for generating random data in whatever format
Link to this section Summary
Functions
string(character_count \\ 32)
deprecated
Returns a base64 encoded string of given length
Link to this section Functions
This function is deprecated. Use `Euclid.Random.string/1` instead.
Specs
string(character_count :: pos_integer()) :: binary()
Returns a base64 encoded string of given length
Examples
iex> Euclid.Extra.Random.string()
"Sr/y4m/YiVSJcIgI5lG+76vMfaZ7KZ7c"
iex> Euclid.Extra.Random.string(5)
"9pJrK"