diff options
| -rw-r--r-- | include/linux/random.h | 4 | ||||
| -rw-r--r-- | include/uapi/linux/random.h | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index 5117ae348fe8..8ef0b70bd1f9 100644 --- a/include/linux/random.h +++ b/include/linux/random.h | |||
| @@ -31,6 +31,10 @@ void prandom_bytes(void *buf, int nbytes); | |||
| 31 | void prandom_seed(u32 seed); | 31 | void prandom_seed(u32 seed); |
| 32 | void prandom_reseed_late(void); | 32 | void prandom_reseed_late(void); |
| 33 | 33 | ||
| 34 | struct rnd_state { | ||
| 35 | __u32 s1, s2, s3; | ||
| 36 | }; | ||
| 37 | |||
| 34 | u32 prandom_u32_state(struct rnd_state *); | 38 | u32 prandom_u32_state(struct rnd_state *); |
| 35 | void prandom_bytes_state(struct rnd_state *state, void *buf, int nbytes); | 39 | void prandom_bytes_state(struct rnd_state *state, void *buf, int nbytes); |
| 36 | 40 | ||
diff --git a/include/uapi/linux/random.h b/include/uapi/linux/random.h index 7471b5b3b8ba..fff3528a078f 100644 --- a/include/uapi/linux/random.h +++ b/include/uapi/linux/random.h | |||
| @@ -40,11 +40,4 @@ struct rand_pool_info { | |||
| 40 | __u32 buf[0]; | 40 | __u32 buf[0]; |
| 41 | }; | 41 | }; |
| 42 | 42 | ||
| 43 | struct rnd_state { | ||
| 44 | __u32 s1, s2, s3; | ||
| 45 | }; | ||
| 46 | |||
| 47 | /* Exported functions */ | ||
| 48 | |||
| 49 | |||
| 50 | #endif /* _UAPI_LINUX_RANDOM_H */ | 43 | #endif /* _UAPI_LINUX_RANDOM_H */ |
