random.h
Go to the documentation of this file.
1 /********************************************************************************************************
2  * @file random.h
3  *
4  * @brief This is the header file for TLSR8258
5  *
6  * @author Driver Group
7  * @date May 8, 2018
8  *
9  * @par Copyright (c) 2018, Telink Semiconductor (Shanghai) Co., Ltd.
10  * All rights reserved.
11  *
12  * The information contained herein is confidential property of Telink
13  * Semiconductor (Shanghai) Co., Ltd. and is available under the terms
14  * of Commercial License Agreement between Telink Semiconductor (Shanghai)
15  * Co., Ltd. and the licensee or the terms described here-in. This heading
16  * MUST NOT be removed from this file.
17  *
18  * Licensees are granted free, non-transferable use of the information in this
19  * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
20  *
21  *******************************************************************************************************/
22 
23 #pragma once
24 
25 
31 void random_generator_init(void);
32 
38 unsigned int rand(void);
39 
46 void generateRandomNum(int len, unsigned char *data);
47 
48 
49 
void random_generator_init(void)
This function performs to initials random generator post.
void generateRandomNum(int len, unsigned char *data)
This function performs to get a serial of random number.
unsigned int rand(void)
This function performs to get one random number.