aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/generic-freebsd/sys/prng.h
blob: 157302a4c91143b5583dfe9ff33dd173f451607d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*-
 * This file is in the public domain.
 */

#ifndef	_SYS_PRNG_H_
#define	_SYS_PRNG_H_

#define	PCG_USE_INLINE_ASM	1
#include <contrib/pcg-c/include/pcg_variants.h>

#ifdef	_KERNEL
__uint32_t prng32(void);
__uint32_t prng32_bounded(__uint32_t bound);
__uint64_t prng64(void);
__uint64_t prng64_bounded(__uint64_t bound);
#endif

#endif