Documentation

Documentation

Includes

stdint.h

#include <stdint.h>
#include 

Macros

Marco __UNI_RANDOM_H__

#define __UNI_RANDOM_H__

      

Functions

Func uni_random

uint32_t uni_random(void);
/**
 * @brief generate a random 32bit unsigned integer
 * 
 * @return the random 32bit unsigned integer
 */

Func uni_random_string

int uni_random_string(char* dst, int size);
/**
 * @brief generate a random string
 * 
 * @param[out] dst the output random string
 * @param[in] size the length of the random string
 * @return 0 on success, others on failed. 
 */

Vars

Consts

Types

Typedefs