Google Cloud IoT device SDK for embedded C  1.0.2
iotc_bsp_rng.h
Go to the documentation of this file.
1 /* Copyright 2018-2020 Google LLC
2  *
3  * This is part of the Google Cloud IoT Device SDK for Embedded C.
4  * It is licensed under the BSD 3-Clause license; you may not use this file
5  * except in compliance with the License.
6  *
7  * You may obtain a copy of the License at:
8  * https://opensource.org/licenses/BSD-3-Clause
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __IOTC_BSP_RNG_H__
18 #define __IOTC_BSP_RNG_H__
19 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
42 void iotc_bsp_rng_init();
43 
47 uint32_t iotc_bsp_rng_get();
48 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* __IOTC_BSP_RNG_H__ */
void iotc_bsp_rng_shutdown()
Shuts down the RNG and frees all of the resources from initializing and generating random numbers.
void iotc_bsp_rng_init()
Initializes the platform-specific RNG requirements.
uint32_t iotc_bsp_rng_get()
Generates and returns a random, 32-bit integer.