Loading...
Searching...
No Matches
hwrng.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
39
40#include <stdint.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
55void hwrng_init(void);
56
66void hwrng_read(void *buf, unsigned int num);
67
68#ifdef __cplusplus
69}
70#endif
71
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.