Loading...
Searching...
No Matches
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
9#pragma once
10
42
43#include <stdint.h>
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
58void hwrng_init(void);
59
69void hwrng_read(void *buf, unsigned int num);
70
71#ifdef __cplusplus
72}
73#endif
74
void hwrng_init(void)
Initialize the hardware random number generator.
void hwrng_read(void *buf, unsigned int num)
Read N bytes of random data from the hardware device.