source: mainline/uspace/lib/c/include/rndgen.h@ b57ba05

Last change on this file since b57ba05 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 534 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2018 Jiri Svoboda
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file Random number generator
11 */
12
13#ifndef _LIBC_RNDGEN_H_
14#define _LIBC_RNDGEN_H_
15
16#include <errno.h>
17#include <stdint.h>
18#include <stdio.h>
19
20typedef struct {
21 unsigned int seed;
22} rndgen_t;
23
24extern errno_t rndgen_create(rndgen_t **);
25extern void rndgen_destroy(rndgen_t *);
26extern errno_t rndgen_uint8(rndgen_t *, uint8_t *);
27extern errno_t rndgen_uint32(rndgen_t *, uint32_t *);
28
29#endif
30
31/** @}
32 */
Note: See TracBrowser for help on using the repository browser.