TuyaOS
include
components
tal_system_service
include
utilities
uni_random.h
浏览该文件的文档.
1
11
#ifndef __UNI_RANDOM_H__
12
#define __UNI_RANDOM_H__
13
14
15
#include <stdint.h>
16
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
27
uint32_t
uni_random
(
void
);
28
36
int
uni_random_string
(
char
* dst,
int
size);
37
38
39
int
uni_random_range(
unsigned
int
range);
40
41
42
#ifdef __cplusplus
43
}
44
#endif
/* __cplusplus */
45
46
47
#endif
/* __UNI_RANDOM_H__ */
uni_random
uint32_t uni_random(void)
generate a random 32bit unsigned integer
uni_random_string
int uni_random_string(char *dst, int size)
generate a random string
制作者
1.9.4