hwrng.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2016 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
31 #ifndef PERIPH_HWRNG_H
32 #define PERIPH_HWRNG_H
33 
34 #include <stdint.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
49 void hwrng_init(void);
50 
60 void hwrng_read(void *buf, unsigned int num);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* PERIPH_HWRNG_H */
67 
void hwrng_read(void *buf, unsigned int num)
Read N bytes of random data from the hardware device.
void hwrng_init(void)
Initialize the hardware random number generator.