MySQL 8.4.2
Source Code Documentation
keyring_common::utils Namespace Reference

Functions

bool get_random_data (const std::unique_ptr< unsigned char[]> &data, size_t length)
 Generate random data. More...
 

Function Documentation

◆ get_random_data()

bool keyring_common::utils::get_random_data ( const std::unique_ptr< unsigned char[]> &  data,
size_t  length 
)

Generate random data.

Parameters
[in,out]dataManaged pointer to data. Should have been initialized
[in]lengthLength of the data to be generated
Returns
status of random data generation
Return values
trueSuccess. data contains generated data.
falseError. Do not rely on data.