TuyaOS
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
19extern "C" {
20#endif
21
27uint32_t uni_random(void);
28
36int uni_random_string(char* dst, int size);
37
38
39int uni_random_range(unsigned int range);
40
41
42#ifdef __cplusplus
43}
44#endif /* __cplusplus */
45
46
47#endif /* __UNI_RANDOM_H__ */
uint32_t uni_random(void)
generate a random 32bit unsigned integer
int uni_random_string(char *dst, int size)
generate a random string