Files
TencentOS-tiny/components/connectivity/mqttclient/common/random.h
2020-06-18 19:49:31 +08:00

19 lines
479 B
C

/*
* @Author: jiejie
* @Github: https://github.com/jiejieTop
* @Date: 2020-01-09 19:59:19
* @LastEditTime : 2020-01-10 08:52:45
* @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
*/
#ifndef _RANDOM_H_
#define _RANDOM_H_
#define RANDOM_MAX 0x7FFFFFFF
int random_number(void);
int random_number_range(unsigned int min, unsigned int max);
char *random_string(unsigned int len);
#endif /* _RANDOM_H_ */