Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Cryptela™ > Functions
random_data/1
Description
random_data/1 is an Erlang function exported by "cryptela" module.
This function generates a random set of bytes returned as a binary buffer.
References
None
Parameters
Name
Type
Size
integer()
Size of the data entropy in number of bytes.
Result
Value or Type
binary()
On success returns a binary buffer.
Code Sample
> cryptela:random_data(8).
<<110,152,24,85,226,48,182,151>>
<<249,5,54,166,138,61,185,110>>