TuyaOS
函数
uni_random.h 文件参考

tuya random module 更多...

#include <stdint.h>
#include <stddef.h>
uni_random.h 的引用(Include)关系图:

浏览源代码.

函数

uint32_t uni_random (void)
 generate a random 32bit unsigned integer 更多...
 
int uni_random_bytes (unsigned char *output, size_t output_len)
 
int uni_random_init (void)
 
int uni_random_range (unsigned int range)
 
int uni_random_string (char *dst, int size)
 generate a random string 更多...
 

详细描述

tuya random module

版本
1.0
日期
2019-10-30

函数说明

◆ uni_random()

uint32_t uni_random ( void  )

generate a random 32bit unsigned integer

返回
the random 32bit unsigned integer

◆ uni_random_string()

int uni_random_string ( char *  dst,
int  size 
)

generate a random string

参数
[out]dstthe output random string
[in]sizethe length of the random string
返回
0 on success, others on failed.