Random module interface header file. More...
#include "mcl_core/mcl_core_common.h"

Go to the source code of this file.
Functions | |
| MCL_CORE_EXPORT mcl_error_t | mcl_random_generate_guid (char **guid) |
| MCL_CORE_EXPORT mcl_error_t | mcl_random_generate_bytes (unsigned char *buffer, mcl_size_t size) |
Random module interface header file.
This module includes functions to generate arbitrary size random numbers and GUID.
Definition in file mcl_random.h.
| MCL_CORE_EXPORT mcl_error_t mcl_random_generate_bytes | ( | unsigned char * | buffer, |
| mcl_size_t | size | ||
| ) |
This function generates random bytes.
| [out] | buffer | Array for random bytes. |
| [in] | size | Size of array in bytes. |
buffer is null. Definition at line 53 of file random.c.
References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FUNCTION_LEAVE_LABEL, and security_generate_random_bytes().

| MCL_CORE_EXPORT mcl_error_t mcl_random_generate_guid | ( | char ** | guid | ) |
This function generates globally unique identifier.
| [out] | guid | Random guid. |
Definition at line 37 of file random.c.
References MCL_ASSERT_CODE_MESSAGE, MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FUNCTION_LEAVE_LABEL, MCL_OK, and random_generate_guid().
