zig/lib/libc/include/generic-freebsd/sys/prng.h
Alex Rønne Petersen 6e64bc845f
libc: Add FreeBSD system and libc headers from 14.2.0.
osreldate.h and sys/param.h were manually adjusted to not __FreeBSD_version
since it will be defined by the compiler.
2025-05-10 12:19:26 +02:00

18 lines
No EOL
337 B
C
Vendored

/*-
* 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