#ifndef _LINUX_PRANDOM_H
#define _LINUX_PRANDOM_H
#include <linux/types.h>
#include <linux/once.h>
#include <linux/random.h>
struct rnd_state { … };
u32 prandom_u32_state(struct rnd_state *state);
void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
#define prandom_init_once(pcpu_state) …
static inline u32 __seed(u32 x, u32 m)
{ … }
static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
{ … }
static inline u32 next_pseudo_random32(u32 seed)
{ … }
#endif