1 /*- 2 * This file is in the public domain. 3 * 4 * $FreeBSD$ 5 */ 6 7 #ifndef _SYS_PRNG_H_ 8 #define _SYS_PRNG_H_ 9 10 #define PCG_USE_INLINE_ASM 1 11 #include <contrib/pcg-c/include/pcg_variants.h> 12 13 #ifdef _KERNEL 14 __uint32_t prng32(void); 15 __uint32_t prng32_bounded(__uint32_t bound); 16 __uint64_t prng64(void); 17 __uint64_t prng64_bounded(__uint64_t bound); 18 #endif 19 20 #endif 21