aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoe Maples <joe@frap129.org>2016-08-28 13:10:23 +0000
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:57:04 +0200
commit348fec78a63fc91b4d0bf2534d56b4f7cb7a27c1 (patch)
tree74fa917aa0630c3c18b683cce78fa6627bcd8653 /include/linux
parent34a20a12e3d15c06b0d9253fe0af3b134d1917b2 (diff)
random: Backport driver from 4.1.31
Signed-off-by: Joe Maples <joe@frap129.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/random.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/linux/random.h b/include/linux/random.h
index 2e5224003..b05856e16 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -88,6 +88,22 @@ static inline int arch_get_random_int(unsigned int *v)
{
return 0;
}
+static inline int arch_has_random(void)
+{
+ return 0;
+}
+static inline int arch_get_random_seed_long(unsigned long *v)
+{
+ return 0;
+}
+static inline int arch_get_random_seed_int(unsigned int *v)
+{
+ return 0;
+}
+static inline int arch_has_random_seed(void)
+{
+ return 0;
+}
#endif
/* Pseudo random number generator from numerical recipes. */
@@ -97,5 +113,3 @@ static inline u32 next_pseudo_random32(u32 seed)
}
#endif /* _LINUX_RANDOM_H */
-
-void erandom_get_random_bytes(char *buf, size_t count);